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 | 0e747d6d0a794242bd214fa44a6a179baeadfdf9 (patch) | |
tree | 90cc84708e698f018b867d8cb6b06a91f8ed9fac /src/utils | |
parent | 35d15937afb7f4b3472e43ea784b02485ec910fb (diff) | |
download | external_skia-0e747d6d0a794242bd214fa44a6a179baeadfdf9.zip external_skia-0e747d6d0a794242bd214fa44a6a179baeadfdf9.tar.gz external_skia-0e747d6d0a794242bd214fa44a6a179baeadfdf9.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 'src/utils')
-rw-r--r-- | src/utils/SkDumpCanvas.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/utils/SkDumpCanvas.cpp b/src/utils/SkDumpCanvas.cpp index a0c85fe..1ef444c 100644 --- a/src/utils/SkDumpCanvas.cpp +++ b/src/utils/SkDumpCanvas.cpp @@ -53,9 +53,7 @@ static void toString(const SkPath& path, SkString* str) { if (path.isEmpty()) { str->set("path:empty"); } else { - SkRect bounds; - path.computeBounds(&bounds, SkPath::kFast_BoundsType); - toString(bounds, str); + toString(path.getBounds(), str); #if 1 SkString s; dumpVerbs(path, &s); |