Index: third_party/WebKit/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp |
=================================================================== |
--- third_party/WebKit/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp (revision 9391) |
+++ third_party/WebKit/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp (working copy) |
@@ -790,7 +790,13 @@ |
TransformationMatrix GraphicsContext::getCTM() const |
{ |
- return platformContext()->canvas()->getTotalMatrix(); |
+ const SkMatrix& m = platformContext()->canvas()->getTotalMatrix(); |
+ return TransformationMatrix(SkScalarToDouble(m.getScaleX()), // a |
+ SkScalarToDouble(m.getSkewY()), // b |
+ SkScalarToDouble(m.getSkewX()), // c |
+ SkScalarToDouble(m.getScaleY()), // d |
+ SkScalarToDouble(m.getTranslateX()), // e |
+ SkScalarToDouble(m.getTranslateY())); // f |
} |
FloatRect GraphicsContext::roundToDevicePixels(const FloatRect& rect) |