commit | d921dbb9b88327eef7b1fbd42e9d88bace4a65ff | [log] [tgz] |
---|---|---|
author | reed <reed@google.com> | Fri Sep 30 09:27:20 2016 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Fri Sep 30 09:27:20 2016 -0700 |
tree | 9e09b7892076ab1f71c82520c0609dbfc3b0f8a0 | |
parent | 84741b308496409f4ff662658167221fc6801bbe [diff] [blame] |
Propagate validation errors from inner readbuffer when deserializing picture. Also allow null paints. BUG=skia:5812 GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2379383002 Review-Url: https://codereview.chromium.org/2379383002
diff --git a/tests/SerializationTest.cpp b/tests/SerializationTest.cpp index 24cab3f..9e40701 100644 --- a/tests/SerializationTest.cpp +++ b/tests/SerializationTest.cpp
@@ -566,6 +566,7 @@ // Deserialize picture SkValidatingReadBuffer reader(static_cast<void*>(data.get()), size); sk_sp<SkPicture> readPict(SkPicture::MakeFromBuffer(reader)); + REPORTER_ASSERT(reporter, reader.isValid()); REPORTER_ASSERT(reporter, readPict.get()); }