Call notifyPixelsChanged after modifying bitmap
authorscroggo <scroggo@chromium.org>
Thu, 30 Jul 2015 18:33:04 +0000 (11:33 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 30 Jul 2015 18:33:04 +0000 (11:33 -0700)
commit4358f13ac614d572c137e95748c6dc2ca0d66784
tree828b374712725314e1369b42e37849cb55d96140
parentf3782fa76f19f361584835654ee45f314b9198a4
Call notifyPixelsChanged after modifying bitmap

In CodecSrc's scanline_subset test, we decode a subset of an image to a
bitmap, draw it to the canvas, and then repeat. This is fine for most
backends, but not for pipe. Pipe sees the same generation ID, so it
assumes it is the same bitmap it saw before, and just draws the
original one.

Call notifyPixelsChanged, so the bitmap will get a new generation ID,
fixing pipe.

BUG=skia:4138

Review URL: https://codereview.chromium.org/1265983004
dm/DMSrcSink.cpp