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

Unified Diff: third_party/WebKit/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp

Issue 17633: Push drawPath() call into PlatformContextSkia to avoid juggling two copies of... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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
« no previous file with comments | « no previous file | third_party/WebKit/WebCore/platform/graphics/skia/PathSkia.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp
===================================================================
--- third_party/WebKit/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp (revision 7906)
+++ third_party/WebKit/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp (working copy)
@@ -406,8 +406,7 @@
if (paintingDisabled())
return;
- const SkPath* oldPath = platformContext()->currentPathInGlobalCoordinates();
- SkPath path(*oldPath);
+ SkPath path = platformContext()->currentPath();
path.setFillType(clipRule == RULE_EVENODD ? SkPath::kEvenOdd_FillType : SkPath::kWinding_FillType);
platformContext()->canvas()->clipPath(path);
}
@@ -676,7 +675,7 @@
if (paintingDisabled())
return;
- SkPath path = platformContext()->currentPathInLocalCoordinates();
+ SkPath path = platformContext()->currentPath();
if (!isPathSkiaSafe(getCTM(), path))
return;
@@ -686,7 +685,7 @@
if (colorSpace == SolidColorSpace && !fillColor().alpha())
return;
- platformContext()->setFillRule(state.fillRule == RULE_EVENODD ?
+ path.setFillType(state.fillRule == RULE_EVENODD ?
SkPath::kEvenOdd_FillType : SkPath::kWinding_FillType);
SkPaint paint;
@@ -1050,7 +1049,7 @@
if (paintingDisabled())
return;
- SkPath path = platformContext()->currentPathInLocalCoordinates();
+ SkPath path = platformContext()->currentPath();
if (!isPathSkiaSafe(getCTM(), path))
return;
« no previous file with comments | « no previous file | third_party/WebKit/WebCore/platform/graphics/skia/PathSkia.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698