diff options
author | Steve Block <steveblock@google.com> | 2010-02-10 18:18:34 +0000 |
---|---|---|
committer | Steve Block <steveblock@google.com> | 2010-02-15 10:54:06 +0000 |
commit | 1267f612f1953a309f53dad9bf7cecefbee193b5 (patch) | |
tree | 6314ebb619f46b691026e947a76e4b4457e81570 /WebCore/platform/graphics/android/PathAndroid.cpp | |
parent | 39cf4a175628e4fd54a93c2c642df8af6325c148 (diff) | |
download | external_webkit-1267f612f1953a309f53dad9bf7cecefbee193b5.zip external_webkit-1267f612f1953a309f53dad9bf7cecefbee193b5.tar.gz external_webkit-1267f612f1953a309f53dad9bf7cecefbee193b5.tar.bz2 |
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
Diffstat (limited to 'WebCore/platform/graphics/android/PathAndroid.cpp')
-rw-r--r-- | WebCore/platform/graphics/android/PathAndroid.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
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); |