Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1146)

Unified Diff: third_party/WebKit/Source/platform/graphics/Gradient.h

Issue 1331533002: [poc] curve-filter Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix CanvasRenderingContext2D::createPattern crash for #40 Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/FrameData.cpp ('k') | third_party/WebKit/Source/platform/graphics/Gradient.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698