Fix SKPBench tiling so MPD and non-MPD match
authorrobertphillips <robertphillips@google.com>
Thu, 4 Dec 2014 16:31:02 +0000 (08:31 -0800)
committerCommit bot <commit-bot@chromium.org>
Thu, 4 Dec 2014 16:31:03 +0000 (08:31 -0800)
commit63242d7d24917f836eace34ee20faeb49def5e67
tree4f7f34959349dc41243fe1cdc477363592f2a16d
parent89dee4298e79b69ef2f1ec045c90ffacff9cabec
Fix SKPBench tiling so MPD and non-MPD match

Two issues with the SKPBench tile computation were causing the MPD path to do more work:

The clip from the parent canvas wasn't being used to trim content off the edges of the MPD tiles

The non-MPD path was not taking the scale into account in its tile placement (resulting in it having fewer, larger active tiles when scaling).

Review URL: https://codereview.chromium.org/776273002
bench/SKPBench.cpp
src/gpu/SkGpuDevice.cpp