Fix a problem with scaled filters in tiled SkPicture playback.
authorsenorblanco@chromium.org <senorblanco@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 5 Feb 2014 22:36:31 +0000 (22:36 +0000)
committersenorblanco@chromium.org <senorblanco@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 5 Feb 2014 22:36:31 +0000 (22:36 +0000)
commit5251e2b91ac976f61e6252d931c1a0e746d2290a
treee6236589d39a7cfc2e8dbc1f0d5334ba5564c33c
parentae761f7545d8ebf181d220169afac2056b057b8c
Fix a problem with scaled filters in tiled SkPicture playback.

The matrix used during filter application should be up-to-date, so that
the filter parameters can be scaled by the CTM (e.g., for hiDPI).
However, tiled playback defers setting of the matrix until after the
restore() call which draws the filter, which is too late. Moving the
setMatrix() ahead of the restore() sequence fixes the problem.

TEST=ImageFilterMatrixTest
R=junov@chromium.org

Review URL: https://codereview.chromium.org/145723007

git-svn-id: http://skia.googlecode.com/svn/trunk@13331 2bbb7eff-a529-9590-31e7-b0007b416f81
src/core/SkPictureStateTree.cpp
tests/ImageFilterTest.cpp