Handle recording a bitmap if copy fails.
authorscroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 4 Dec 2012 15:08:56 +0000 (15:08 +0000)
committerscroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 4 Dec 2012 15:08:56 +0000 (15:08 +0000)
commit4b90b1122c93e6600ea352f4ccf1dfc54c8bb146
tree16ee994e3b2293fde0d1265eb0d57c4164db3dea
parentebce0301082cda9dc3e3298f6db91d46fe66298b
Handle recording a bitmap if copy fails.

If SkBitmapHeap::insert() returns INVALID_SLOT, assert at picture
record time so we can debug, but allow it to continue in release
mode, so that we can still capture a picture. At playback time,
print a message so we know that there was an error.

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

git-svn-id: http://skia.googlecode.com/svn/trunk@6664 2bbb7eff-a529-9590-31e7-b0007b416f81
src/core/SkPicturePlayback.h
src/core/SkPictureRecord.cpp
tests/PictureTest.cpp