Make the canvas draw looper setup update the canvas save count
authorreed <reed@google.com>
Thu, 26 Mar 2015 20:29:56 +0000 (13:29 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 26 Mar 2015 20:29:56 +0000 (13:29 -0700)
commitfd3a91e1fc4de69611b5297f624a1cd65db4ced1
treedfba413e72dabf2d29e9391422de87aadca9df30
parent3d4c4a5a9feff961c6ba70443fa40ea1ca0a503e
Make the canvas draw looper setup update the canvas save count

Image filter in a paint would leave save count in wrong state
for normal draws. This could be observed through the canvas
references during the draw call. An example of this is
inspecting the canvas during a draw looper.

patch from issue 993863002 at patchset 20001 (http://crrev.com/993863002#ps20001)

BUG=skia:
TBR=kkinnunen@nvidia.com

Review URL: https://codereview.chromium.org/1034033004
gyp/tests.gypi
src/core/SkCanvas.cpp
tests/DrawLooperTest.cpp [new file with mode: 0644]