Do not playback pending commands for full deferred canvas writePixels
authorkkinnunen <kkinnunen@nvidia.com>
Mon, 23 Mar 2015 09:18:02 +0000 (02:18 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 23 Mar 2015 09:18:02 +0000 (02:18 -0700)
commit8dcb8b04f80eff810e63c2696c01f6150d104109
tree2214c3f0a15ab86b4a807eb166b03eb9cc788bd8
parent96017dc2b8af043084a2e5210c42d682dcf983a3
Do not playback pending commands for full deferred canvas writePixels

Do not playback pending commands for full deferred canvas writePixels.

Changes the test to catch cases where discard is done without
a snapshot.

Review URL: https://codereview.chromium.org/939103002
src/utils/SkDeferredCanvas.cpp
tests/DeferredCanvasTest.cpp