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

Unified Diff: third_party/WebKit/Source/platform/graphics/filters/PaintFilterEffect.cpp

Issue 2523673004: [NOT FOR COMMIT] Fully replace SkCanvas uses.
Patch Set: Support Android build. Created 4 years 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/filters/PaintFilterEffect.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/filters/PaintFilterEffect.cpp b/third_party/WebKit/Source/platform/graphics/filters/PaintFilterEffect.cpp
index 9d246c6ffd63de3b7e284f4e63b2c288ece7c783..31db2bf03b682df5277360f05b1e498101ffffe9 100644
--- a/third_party/WebKit/Source/platform/graphics/filters/PaintFilterEffect.cpp
+++ b/third_party/WebKit/Source/platform/graphics/filters/PaintFilterEffect.cpp
@@ -10,7 +10,7 @@
namespace blink {
-PaintFilterEffect::PaintFilterEffect(Filter* filter, const SkPaint& paint)
+PaintFilterEffect::PaintFilterEffect(Filter* filter, const CdlPaint& paint)
: FilterEffect(filter), m_paint(paint) {
setOperatingColorSpace(ColorSpaceDeviceRGB);
}
@@ -18,12 +18,12 @@ PaintFilterEffect::PaintFilterEffect(Filter* filter, const SkPaint& paint)
PaintFilterEffect::~PaintFilterEffect() {}
PaintFilterEffect* PaintFilterEffect::create(Filter* filter,
- const SkPaint& paint) {
+ const CdlPaint& paint) {
return new PaintFilterEffect(filter, paint);
}
sk_sp<SkImageFilter> PaintFilterEffect::createImageFilter() {
- return SkPaintImageFilter::Make(m_paint, nullptr);
+ return SkPaintImageFilter::Make(ToSkPaint(m_paint), nullptr);
}
TextStream& PaintFilterEffect::externalRepresentation(TextStream& ts,

Powered by Google App Engine
This is Rietveld 408576698