Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(109)

Unified Diff: tests/SerializationTest.cpp

Issue 1853383002: Revert of Delete SkFlattenable::Type (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/ImageFilterTest.cpp ('k') | tools/chrome_fuzz.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/SerializationTest.cpp
diff --git a/tests/SerializationTest.cpp b/tests/SerializationTest.cpp
index b590fb5821001f4a492efc8c4e82b2c6bff190ef..15b73827ae2780470940a565100f8fe6ecab9380 100644
--- a/tests/SerializationTest.cpp
+++ b/tests/SerializationTest.cpp
@@ -42,7 +42,7 @@
writer.writeFlattenable(flattenable);
}
static void Read(SkValidatingReadBuffer& reader, T** flattenable) {
- *flattenable = (T*)reader.readFlattenable();
+ *flattenable = (T*)reader.readFlattenable(T::GetFlattenableType());
}
};
« no previous file with comments | « tests/ImageFilterTest.cpp ('k') | tools/chrome_fuzz.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698