SkBitmap::scrollRect changes pixels, but only if not immutable.
authorscroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 22 Aug 2012 16:19:52 +0000 (16:19 +0000)
committerscroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 22 Aug 2012 16:19:52 +0000 (16:19 +0000)
commit6a9368d41154890b6c316fdae704bf56ca4c70cc
treec269ed372af4b0cefd56e22b290e9798674ff053
parent825bb95d6aac49abcdec76314498e1913b2104f2
SkBitmap::scrollRect changes pixels, but only if not immutable.

scrollRect will now return false if the bitmap is immutable, and
call notifyPixelsChanged when changing the pixels. This will give
the bitmap a new generation ID.

Review URL: https://codereview.appspot.com/6480046

git-svn-id: http://skia.googlecode.com/svn/trunk@5230 2bbb7eff-a529-9590-31e7-b0007b416f81
include/core/SkBitmap.h
src/core/SkBitmap_scroll.cpp