Index: Source/platform/graphics/Gradient.cpp |
diff --git a/Source/platform/graphics/Gradient.cpp b/Source/platform/graphics/Gradient.cpp |
index 76d0f27d2b878ffcfe70a69c1d246b6563d8c604..1f21b5bad88d7fbec1647d2f4a50c102377a8673 100644 |
--- a/Source/platform/graphics/Gradient.cpp |
+++ b/Source/platform/graphics/Gradient.cpp |
@@ -32,7 +32,6 @@ |
#include "platform/graphics/GraphicsContext.h" |
#include "platform/graphics/skia/SkiaUtils.h" |
#include "third_party/skia/include/core/SkColor.h" |
-#include "third_party/skia/include/core/SkColorShader.h" |
#include "third_party/skia/include/core/SkShader.h" |
#include "third_party/skia/include/effects/SkGradientShader.h" |
@@ -260,7 +259,7 @@ SkShader* Gradient::shader() |
if (!m_gradient) { |
// use last color, since our "geometry" was degenerate (e.g. radius==0) |
- m_gradient = adoptRef(new SkColorShader(colors[countUsed - 1])); |
+ m_gradient = adoptRef(SkShader::CreateColorShader(colors[countUsed - 1])); |
} |
return m_gradient.get(); |
} |