diff options
author | Mike Reed <> | 2009-04-02 09:06:19 -0700 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-04-02 09:06:19 -0700 |
commit | 080bc1ba7b8ddbf64777662f6427ae3f578c1c04 (patch) | |
tree | 882d3428290a248f16f4d78fa9340c77ff663477 /WebKit/android/jni/PictureSet.cpp | |
parent | 14d0be6801cd4bc19dc6108784d1eedcfd2279e7 (diff) | |
download | external_webkit-080bc1ba7b8ddbf64777662f6427ae3f578c1c04.zip external_webkit-080bc1ba7b8ddbf64777662f6427ae3f578c1c04.tar.gz external_webkit-080bc1ba7b8ddbf64777662f6427ae3f578c1c04.tar.bz2 |
AI 144018: change path to return its internal cached bounds, making it much lighter-weight to get the bounds.
BUG=1748928
Automated import of CL 144018
Diffstat (limited to 'WebKit/android/jni/PictureSet.cpp')
-rw-r--r-- | WebKit/android/jni/PictureSet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/WebKit/android/jni/PictureSet.cpp b/WebKit/android/jni/PictureSet.cpp index ac3f38a..e8fcba5 100644 --- a/WebKit/android/jni/PictureSet.cpp +++ b/WebKit/android/jni/PictureSet.cpp @@ -263,7 +263,7 @@ bool PictureSet::draw(SkCanvas* canvas) SkPath pathClip; area.getBoundaryPath(&pathClip); canvas->clipPath(pathClip); - pathClip.computeBounds(&pathBounds, SkPath::kFast_BoundsType); + pathBounds = pathClip.getBounds(); } else { pathBounds.set(area.getBounds()); canvas->clipRect(pathBounds); |