aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/SerialProcsTest.cpp
diff options
context:
space:
mode:
authorGravatar Mike Reed <reed@google.com>2018-03-08 16:29:12 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-03-08 21:50:51 +0000
commitd07e4a226a831b433f99c69c3faf449dd41a6c5d (patch)
tree8b7b0a324f884eaa319c5b330fda6fd4c4328f88 /tests/SerialProcsTest.cpp
parent4684f82ebca85d4c7043e5c1028e34cf5631da32 (diff)
Change behavior of custom image serial/deserial
New behavior is to *always* call the client's deserial image proc for all data. This allows the client to make decisions even on "std" image data like PNG. The change also means that if there is no client deserial image proc, Skia will still attempt to create an image from the data, even if it was written by a custom serial proc. Bug: skia:7706 Change-Id: Ia58bdd10b86d497f02187082c6373c029e9c8293 Reviewed-on: https://skia-review.googlesource.com/113302 Reviewed-by: Florin Malita <fmalita@chromium.org> Reviewed-by: Leon Scroggins <scroggo@google.com> Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'tests/SerialProcsTest.cpp')
-rw-r--r--tests/SerialProcsTest.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/SerialProcsTest.cpp b/tests/SerialProcsTest.cpp
index c408dc7eb6..fd82079147 100644
--- a/tests/SerialProcsTest.cpp
+++ b/tests/SerialProcsTest.cpp
@@ -38,7 +38,6 @@ DEF_TEST(serial_procs_image, reporter) {
};
const SkDeserialImageProc dprocs[] = {
[](const void* data, size_t length, void*) -> sk_sp<SkImage> {
- SK_ABORT("should not get called");
return nullptr;
},
[](const void* data, size_t length, void*) {