Allow creating a picture from skp to fail.
authorscroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 1 Oct 2013 15:30:46 +0000 (15:30 +0000)
committerscroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 1 Oct 2013 15:30:46 +0000 (15:30 +0000)
commit12705329d0807863d4d80cac0f02e543c26f24a1
tree778f6aa121c350e9a81a89a83439a7053c627514
parent635091f0a98b7d86a74baff11ae5e304062d8420
Allow creating a picture from skp to fail.

Replace the current constructor for creating an
SkPicturePlayback to a factory. In the factory,
check for incorrect data that would result in an invalid
playback. If the playback is invalid, return NULL, and
return NULL from SkPicture's factory as well.

Update SkTimedPicture(Playback) as well.

BUG=skia:1672
R=caryclark@google.com

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

git-svn-id: http://skia.googlecode.com/svn/trunk@11554 2bbb7eff-a529-9590-31e7-b0007b416f81
debugger/QT/SkDebuggerGUI.cpp
src/core/SkPicture.cpp
src/core/SkPicturePlayback.cpp
src/core/SkPicturePlayback.h