aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2014-07-29 10:37:02 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-07-29 10:37:03 -0700
commita8f8da0500d9a9a561eb8847292c14d874a31092 (patch)
tree7195da50bd719e78b18c948fb8f9b0412b75353a /tools
parentfdd09c20027ab4e8e9b3e238b518c83bd2eda2b0 (diff)
Optimize correct picture in bench_pictures when using --bbh
Almost all PictureRenderer::init implementations have the power to overwrite the picture. Retrieve the correct SkPicture from the renderer for optimization. R=bsalomon@google.com Author: robertphillips@google.com Review URL: https://codereview.chromium.org/428883008
Diffstat (limited to 'tools')
-rw-r--r--tools/PictureBenchmark.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/PictureBenchmark.cpp b/tools/PictureBenchmark.cpp
index e2a726f1a5..8a714ca239 100644
--- a/tools/PictureBenchmark.cpp
+++ b/tools/PictureBenchmark.cpp
@@ -74,7 +74,7 @@ void PictureBenchmark::run(SkPicture* pict) {
if (fPreprocess) {
if (NULL != fRenderer->getCanvas()) {
- fRenderer->getCanvas()->EXPERIMENTAL_optimize(pict);
+ fRenderer->getCanvas()->EXPERIMENTAL_optimize(fRenderer->getPicture());
}
}