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

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

Issue 1162843003: Add a MaskFilter interface to dart:sky to handle blur. (Closed) Base URL: git@github.com:/domokit/mojo.git@master
Patch Set: . 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
Index: sky/engine/core/painting/Paint.cpp
diff --git a/sky/engine/core/painting/Paint.cpp b/sky/engine/core/painting/Paint.cpp
index 549cd72dbd503a4a0f1b9cfb27ff790dd5b3641e..05164a09d8d555d5f1105ffce9271d9e12e02230 100644
--- a/sky/engine/core/painting/Paint.cpp
+++ b/sky/engine/core/painting/Paint.cpp
@@ -7,6 +7,7 @@
#include "sky/engine/core/painting/ColorFilter.h"
#include "sky/engine/core/painting/DrawLooper.h"
+#include "sky/engine/core/painting/MaskFilter.h"
namespace blink {
@@ -30,4 +31,10 @@ void Paint::setColorFilter(ColorFilter* filter)
m_paint.setColorFilter(filter->filter());
}
+void Paint::setMaskFilter(MaskFilter* filter)
+{
+ ASSERT(filter);
+ m_paint.setMaskFilter(filter->filter());
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698