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

Unified Diff: include/effects/SkStippleMaskFilter.h

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. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: include/effects/SkStippleMaskFilter.h
diff --git a/include/effects/SkStippleMaskFilter.h b/include/effects/SkStippleMaskFilter.h
index 30263a3689488e176c80bc6e3f4f3201d05bae14..b016a164504ee9b22226dbfcc3614aabf898de3f 100644
--- a/include/effects/SkStippleMaskFilter.h
+++ b/include/effects/SkStippleMaskFilter.h
@@ -32,11 +32,10 @@ public:
SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkStippleMaskFilter);
protected:
- SkStippleMaskFilter() : INHERITED() {
- }
- explicit SkStippleMaskFilter(SkReadBuffer& buffer)
- : SkMaskFilter(buffer) {
- }
+ SkStippleMaskFilter() {}
+#ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING
+ explicit SkStippleMaskFilter(SkReadBuffer& buffer) : SkMaskFilter(buffer) {}
+#endif
private:
typedef SkMaskFilter INHERITED;

Powered by Google App Engine
This is Rietveld 408576698