Index: tests/ImageFilterTest.cpp |
diff --git a/tests/ImageFilterTest.cpp b/tests/ImageFilterTest.cpp |
index c6f04334596c1dcff9cb59ecce0e6de03ddca948..e6430b4d8775c56b55ba6a14bb2e109dc45fcd94 100644 |
--- a/tests/ImageFilterTest.cpp |
+++ b/tests/ImageFilterTest.cpp |
@@ -1089,7 +1089,7 @@ |
// cross-process. Do this by "laundering" it through SkValidatingReadBuffer. |
SkAutoTUnref<SkData> data(SkValidatingSerializeFlattenable(imageFilter.get())); |
SkAutoTUnref<SkFlattenable> flattenable(SkValidatingDeserializeFlattenable( |
- data->data(), data->size())); |
+ data->data(), data->size(), SkImageFilter::GetFlattenableType())); |
SkImageFilter* unflattenedFilter = static_cast<SkImageFilter*>(flattenable.get()); |
redPaintWithFilter.setImageFilter(unflattenedFilter); |
@@ -1536,7 +1536,7 @@ |
sk_sp<SkData> data(SkValidatingSerializeFlattenable(filter.get())); |
sk_sp<SkFlattenable> flattenable(SkValidatingDeserializeFlattenable( |
- data->data(), data->size())); |
+ data->data(), data->size(), SkImageFilter::GetFlattenableType())); |
SkImageFilter* unflattenedFilter = static_cast<SkImageFilter*>(flattenable.get()); |
REPORTER_ASSERT(reporter, unflattenedFilter); |