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

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

Issue 2640983002: Rename paint data structures (Closed)
Patch Set: DrawingDisplayItem Created 3 years, 11 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: 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..c999938f8d2c64e2aaaaf89a6db5ec6a87ec0995 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 PaintFlags& 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 PaintFlags& 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