Index: third_party/WebKit/Source/platform/graphics/Gradient.h |
diff --git a/third_party/WebKit/Source/platform/graphics/Gradient.h b/third_party/WebKit/Source/platform/graphics/Gradient.h |
index 49e0f740ab84df171045dfcd1c74eab573fa7e70..ab50710c42043c3127114fff85d5b7e21a7f93ca 100644 |
--- a/third_party/WebKit/Source/platform/graphics/Gradient.h |
+++ b/third_party/WebKit/Source/platform/graphics/Gradient.h |
@@ -131,6 +131,13 @@ private: |
void sortStopsIfNecessary(); |
+ void applyShaderToPaintInternal(SkShader* shader, SkPaint& paint) |
+ { |
+ paint.setShader(shader); |
+ // Legacy behavior: gradients are always dithered. |
+ paint.setDither(true); |
+ } |
+ |
FloatPoint m_p0; |
FloatPoint m_p1; |
float m_r0; |