diff options
author | scroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-02-25 16:05:00 +0000 |
---|---|---|
committer | scroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-02-25 16:05:00 +0000 |
commit | 12d588a7f28e18f87f5f9a6eb57fc1f5137a8d28 (patch) | |
tree | 499ba7331524b98cb223c7af0a94e5a184e32276 /src/core/SkPicture.cpp | |
parent | 0ba4bf427acbd7707d04192a98c77ef194a0f25a (diff) |
Remove bogus ability for creating an SkPicturePlayback to fail.
Change SkPicturePlayback::parseBufferTag to return void, since
it can never return false.
Change SkPicturePlayback::parseStreamTag to return void, since
the only way it can return false is if parseBufferTag returns
false, or if creating a sub picture failed, both of which are
nonsensical.
Due to the above, there is no reason for creating an
SkPicturePlayback to fail, so remove the isValid parameter.
Update subclasses in SkDebuggerGUI.
Review URL: https://codereview.appspot.com/7388050
git-svn-id: http://skia.googlecode.com/svn/trunk@7844 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core/SkPicture.cpp')
-rw-r--r-- | src/core/SkPicture.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/core/SkPicture.cpp b/src/core/SkPicture.cpp index 381bbaec48..1ff5865651 100644 --- a/src/core/SkPicture.cpp +++ b/src/core/SkPicture.cpp @@ -290,13 +290,7 @@ void SkPicture::initFromStream(SkStream* stream, bool* success, InstallPixelRefP } if (stream->readBool()) { - bool isValid = false; - fPlayback = SkNEW_ARGS(SkPicturePlayback, (stream, info, &isValid, proc)); - if (!isValid) { - SkDELETE(fPlayback); - fPlayback = NULL; - return; - } + fPlayback = SkNEW_ARGS(SkPicturePlayback, (stream, info, proc)); } // do this at the end, so that they will be zero if we hit an error. |