summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/graphics/skia/SkiaUtils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/platform/graphics/skia/SkiaUtils.cpp')
-rw-r--r--WebCore/platform/graphics/skia/SkiaUtils.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/WebCore/platform/graphics/skia/SkiaUtils.cpp b/WebCore/platform/graphics/skia/SkiaUtils.cpp
index 6d9ffe2..af168a2 100644
--- a/WebCore/platform/graphics/skia/SkiaUtils.cpp
+++ b/WebCore/platform/graphics/skia/SkiaUtils.cpp
@@ -151,7 +151,12 @@ bool SkPathContainsPoint(SkPath* originalPath, const FloatPoint& point, SkPath::
int scale = 1;
SkRect bounds;
+#if PLATFORM(SGL)
+ // this is the API from skia/trunk
+ bounds = originalPath->getBounds();
+#else
originalPath->computeBounds(&bounds, SkPath::kFast_BoundsType);
+#endif
// We can immediately return false if the point is outside the bounding rect
if (!bounds.contains(SkFloatToScalar(point.x()), SkFloatToScalar(point.y())))