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

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

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/Paint.h ('k') | sky/engine/core/painting/Paint.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/painting/Paint.cpp
diff --git a/sky/engine/core/painting/Paint.cpp b/sky/engine/core/painting/Paint.cpp
index a132a08252e57c6e2a5ef8cf9125bd0c58fbd6ff..549cd72dbd503a4a0f1b9cfb27ff790dd5b3641e 100644
--- a/sky/engine/core/painting/Paint.cpp
+++ b/sky/engine/core/painting/Paint.cpp
@@ -5,6 +5,7 @@
#include "sky/engine/config.h"
#include "sky/engine/core/painting/Paint.h"
+#include "sky/engine/core/painting/ColorFilter.h"
#include "sky/engine/core/painting/DrawLooper.h"
namespace blink {
@@ -23,4 +24,10 @@ void Paint::setDrawLooper(DrawLooper* looper)
m_paint.setLooper(looper->looper());
}
+void Paint::setColorFilter(ColorFilter* filter)
+{
+ ASSERT(filter);
+ m_paint.setColorFilter(filter->filter());
+}
+
} // namespace blink
« no previous file with comments | « sky/engine/core/painting/Paint.h ('k') | sky/engine/core/painting/Paint.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698