Allow previously-hoisted layers to be reused in the same draw
authorrobertphillips <robertphillips@google.com>
Tue, 30 Sep 2014 18:33:02 +0000 (11:33 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 30 Sep 2014 18:33:02 +0000 (11:33 -0700)
commitb5a97154f893a5fd3495e16872d370124e93c6ca
treee139e1d58496b906d9c50652641cf3afa65cd081
parent5bc760a6a6a61ff462a204e0c051ad6147760223
Allow previously-hoisted layers to be reused in the same draw

In the Sierpinkski test case there are only a few layers appear in the "to be drawn" lists but they those layers get reused a lot of times with different transforms. This CL adds an additional category to allow such layers to be placed in the GrReplacements object without needing to be rendered.

This is split out of (Fix sub-picture layer rendering bugs - https://codereview.chromium.org/597293002/)

BUG=skia:2315
R=bsalomon@google.com

Author: robertphillips@google.com

Review URL: https://codereview.chromium.org/616023002
src/gpu/GrLayerHoister.cpp
src/gpu/GrLayerHoister.h
src/gpu/GrPictureUtils.cpp
src/gpu/SkGpuDevice.cpp