aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/GpuLayerCacheTest.cpp
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2014-08-18 08:45:33 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-08-18 08:45:33 -0700
commit479601b9a74b5b8e424ed3d68882e161617bdceb (patch)
treead785511cc34976a1e9285cded5e53cca38802eb /tests/GpuLayerCacheTest.cpp
parent0459cc732b8257b98bce39af8b73f82bed2a8d6c (diff)
Small tweaks and a bug fix.
Bug fixed: I was calling paint->canComputeFastBounds() where I should have been calling fSaveStack[i].paint->canComputeFastBounds(). This suggested I factor out the paint adjusting code, now called AdjustForPaint(). This removes the getImageFilter() check for SaveLayers, which seems like an optimization we can add back later if it proves important. We're going to want to intersect the bounds with the current clip bounds eventually, so might as well land that here too. Plus, more const. BUG=skia: R=robertphillips@google.com, mtklein@google.com Author: mtklein@chromium.org Review URL: https://codereview.chromium.org/481543002
Diffstat (limited to 'tests/GpuLayerCacheTest.cpp')
0 files changed, 0 insertions, 0 deletions