From 1267f612f1953a309f53dad9bf7cecefbee193b5 Mon Sep 17 00:00:00 2001 From: Steve Block Date: Wed, 10 Feb 2010 18:18:34 +0000 Subject: Merge webkit.org at r54340 : Implement new GraphicsContext::concatCTM and Path::transform methods for Android We copy the Skia implementations See http://trac.webkit.org/changeset/54112 Change-Id: I7575b7fe2690b0eacf4c3da2cc9fd6645d8d2c6f --- WebCore/platform/graphics/android/PathAndroid.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'WebCore/platform/graphics/android/PathAndroid.cpp') diff --git a/WebCore/platform/graphics/android/PathAndroid.cpp b/WebCore/platform/graphics/android/PathAndroid.cpp index 4fdda23..e20cc26 100644 --- a/WebCore/platform/graphics/android/PathAndroid.cpp +++ b/WebCore/platform/graphics/android/PathAndroid.cpp @@ -25,16 +25,16 @@ #include "config.h" #include "Path.h" + +#include "AffineTransform.h" #include "FloatRect.h" #include "GraphicsContext.h" #include "ImageBuffer.h" -#include "StrokeStyleApplier.h" -#include "TransformationMatrix.h" - #include "SkPaint.h" #include "SkPath.h" #include "SkRegion.h" - +#include "StrokeStyleApplier.h" +#include "TransformationMatrix.h" #include "android_graphics.h" namespace WebCore { @@ -265,6 +265,11 @@ void Path::apply(void* info, PathApplierFunction function) const } } +void Path::transform(const AffineTransform& xform) +{ + m_path->transform(xform); +} + void Path::transform(const TransformationMatrix& xform) { m_path->transform(xform); -- cgit v1.1