Index: third_party/WebKit/WebCore/platform/graphics/skia/PlatformContextSkia.cpp |
=================================================================== |
--- third_party/WebKit/WebCore/platform/graphics/skia/PlatformContextSkia.cpp (revision 7841) |
+++ third_party/WebKit/WebCore/platform/graphics/skia/PlatformContextSkia.cpp (working copy) |
@@ -378,9 +378,18 @@ |
void PlatformContextSkia::addPath(const SkPath& path) |
{ |
- m_path.addPath(path); |
+ m_path.addPath(path, m_canvas->getTotalMatrix()); |
} |
+SkPath PlatformContextSkia::currentPathInLocalCoordinates() const { |
+ SkPath local_path = m_path; |
+ const SkMatrix& matrix = m_canvas->getTotalMatrix(); |
+ SkMatrix inverse_matrix; |
+ matrix.invert(&inverse_matrix); |
+ local_path.transform(inverse_matrix); |
+ return local_path; |
+} |
+ |
void PlatformContextSkia::setFillRule(SkPath::FillType fr) |
{ |
m_path.setFillType(fr); |