Chromium Code Reviews

Unified Diff: src/core/SkDraw.cpp

Issue 395603002: Simplify flattening to just write enough to call the factory (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: src/core/SkDraw.cpp
diff --git a/src/core/SkDraw.cpp b/src/core/SkDraw.cpp
index b77eb430c7be6ea33700a193a376d1b47ca719b8..0bbbc558da03942f73beca6953dce7fd78a21742 100644
--- a/src/core/SkDraw.cpp
+++ b/src/core/SkDraw.cpp
@@ -2014,7 +2014,9 @@ public:
SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkTriColorShader)
protected:
+#ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING
SkTriColorShader(SkReadBuffer& buffer) : SkShader(buffer) {}
+#endif
virtual Context* onCreateContext(const ContextRec& rec, void* storage) const SK_OVERRIDE {
return SkNEW_PLACEMENT_ARGS(storage, TriColorShaderContext, (*this, rec));

Powered by Google App Engine