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

Unified Diff: third_party/WebKit/Source/platform/graphics/Path.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/Path.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/Path.cpp b/third_party/WebKit/Source/platform/graphics/Path.cpp
index dd890089b67e1758fc6cf805777d198359307cd2..4c3e2c34bd59d83d41dcc94efa79ffe927f578d2 100644
--- a/third_party/WebKit/Source/platform/graphics/Path.cpp
+++ b/third_party/WebKit/Source/platform/graphics/Path.cpp
@@ -86,7 +86,7 @@ bool Path::contains(const FloatPoint& point, WindRule rule) const {
// FIXME: this method ignores the CTM and may yield inaccurate results for large
// scales.
SkPath Path::strokePath(const StrokeData& strokeData) const {
- SkPaint paint;
+ CdlPaint paint;
strokeData.setupPaint(&paint);
// Skia stroke resolution scale. This is multiplied by 4 internally
@@ -94,7 +94,7 @@ SkPath Path::strokePath(const StrokeData& strokeData) const {
static const SkScalar kResScale = 0.3f;
SkPath strokePath;
- paint.getFillPath(m_path, &strokePath, nullptr, kResScale);
+ ToSkPaint(paint).getFillPath(m_path, &strokePath, nullptr, kResScale);
return strokePath;
}

Powered by Google App Engine
This is Rietveld 408576698