aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkMultiPictureDraw.cpp
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2014-11-11 04:54:49 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2014-11-11 04:54:49 -0800
commit81f71b6630a9b7398bf983689436cccdd8dd3ff7 (patch)
tree0c7f9ad995dd1ecd400af5da639c433fdda68f92 /src/core/SkMultiPictureDraw.cpp
parentbffcb52ffe9b8bb4ae7f6eda0c55719d8e3be7b6 (diff)
Change where layer hoisting data is gathered
This CL: 1) removes the EXPERIMENTAL_optimize on SkCanvas & SkDevice 2) moves the saveLayer gathering step to endRecording 3) Replaces GPUOptimize with SkRecordComputeLayers 4) Update bench_pictures & render_pictures to provide the new flag #2 also necessitated moving the BBH computation (and record optimization) out of SkPicture's ctor (and into endRecording) Review URL: https://codereview.chromium.org/718443002
Diffstat (limited to 'src/core/SkMultiPictureDraw.cpp')
-rw-r--r--src/core/SkMultiPictureDraw.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/core/SkMultiPictureDraw.cpp b/src/core/SkMultiPictureDraw.cpp
index 0e21b5c54a..0285598413 100644
--- a/src/core/SkMultiPictureDraw.cpp
+++ b/src/core/SkMultiPictureDraw.cpp
@@ -112,10 +112,6 @@ void SkMultiPictureDraw::draw() {
SkASSERT(data.fCanvas->getGrContext() == context);
if (!data.fPaint && data.fMatrix.isIdentity()) {
- // TODO: this path always tries to optimize pictures. Should we
- // switch to this API approach (vs. SkCanvas::EXPERIMENTAL_optimize)?
- data.fCanvas->EXPERIMENTAL_optimize(data.fPicture);
-
SkRect clipBounds;
if (!data.fCanvas->getClipBounds(&clipBounds)) {
continue;