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

Unified Diff: sky/engine/core/painting/Paint.h

Issue 1152963009: Add support for linear gradients, implemented as skia shaders. (Closed) Base URL: git@github.com:/domokit/mojo.git@master
Patch Set: . Created 5 years, 6 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: sky/engine/core/painting/Paint.h
diff --git a/sky/engine/core/painting/Paint.h b/sky/engine/core/painting/Paint.h
index 71ac40573207b2a3fe8d5fd720c16070fd404c92..5b56ea541d4472480191001ea7a12c62c925e430 100644
--- a/sky/engine/core/painting/Paint.h
+++ b/sky/engine/core/painting/Paint.h
@@ -17,6 +17,7 @@ namespace blink {
class DrawLooper;
class ColorFilter;
class MaskFilter;
+class Shader;
class Paint : public RefCounted<Paint>, public DartWrappable {
DEFINE_WRAPPERTYPEINFO();
@@ -40,6 +41,7 @@ public:
void setDrawLooper(DrawLooper* looper);
void setColorFilter(ColorFilter* filter);
void setMaskFilter(MaskFilter* filter);
+ void setShader(Shader* shader);
const SkPaint& paint() const { return m_paint; }
void setPaint(const SkPaint& paint) { m_paint = paint; }

Powered by Google App Engine
This is Rietveld 408576698