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

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

Issue 1158693005: Add an API to set the ColorFilter on a Paint object. (Closed) Base URL: git@github.com:/domokit/mojo.git@master
Patch Set: abarth Created 5 years, 7 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
« no previous file with comments | « sky/engine/core/painting/LayerDrawLooperBuilder.cpp ('k') | sky/engine/core/painting/Paint.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/painting/Paint.h
diff --git a/sky/engine/core/painting/Paint.h b/sky/engine/core/painting/Paint.h
index d547474f6066fce99563c2da23f840bf7ebd1016..ed94297790d476748123eff48c3f24dd331d9f42 100644
--- a/sky/engine/core/painting/Paint.h
+++ b/sky/engine/core/painting/Paint.h
@@ -13,6 +13,7 @@
namespace blink {
class DrawLooper;
+class ColorFilter;
class Paint : public RefCounted<Paint>, public DartWrappable {
DEFINE_WRAPPERTYPEINFO();
@@ -34,6 +35,7 @@ public:
m_paint.setARGB(a, r, g, b);
}
void setDrawLooper(DrawLooper* looper);
+ void setColorFilter(ColorFilter* filter);
const SkPaint& paint() const { return m_paint; }
void setPaint(const SkPaint& paint) { m_paint = paint; }
« no previous file with comments | « sky/engine/core/painting/LayerDrawLooperBuilder.cpp ('k') | sky/engine/core/painting/Paint.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698