Change where layer hoisting data is gathered
authorrobertphillips <robertphillips@google.com>
Tue, 11 Nov 2014 12:54:49 +0000 (04:54 -0800)
committerCommit bot <commit-bot@chromium.org>
Tue, 11 Nov 2014 12:54:49 +0000 (04:54 -0800)
commit81f71b6630a9b7398bf983689436cccdd8dd3ff7
tree0c7f9ad995dd1ecd400af5da639c433fdda68f92
parentbffcb52ffe9b8bb4ae7f6eda0c55719d8e3be7b6
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
15 files changed:
gm/multipicturedraw.cpp
include/core/SkCanvas.h
include/core/SkDevice.h
include/core/SkPictureRecorder.h
src/core/SkCanvas.cpp
src/core/SkDevice.cpp
src/core/SkMultiPictureDraw.cpp
src/core/SkPicture.cpp
src/core/SkPictureRecorder.cpp
src/gpu/GrPictureUtils.cpp
src/gpu/GrPictureUtils.h
src/gpu/SkGpuDevice.cpp
src/gpu/SkGpuDevice.h
tests/PictureTest.cpp
tools/PictureRenderer.cpp