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

Unified Diff: src/core/SkReadBuffer.h

Issue 1913843002: Enable flattening of SkRecordedDrawable (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Consider registering SkRecordedDrawable without the global registry 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
Index: src/core/SkReadBuffer.h
diff --git a/src/core/SkReadBuffer.h b/src/core/SkReadBuffer.h
index 8f15a8d366ea282ce599151e7613b298e20d4983..f82f5662c7137cc75383300722d681c1c5d9528c 100644
--- a/src/core/SkReadBuffer.h
+++ b/src/core/SkReadBuffer.h
@@ -204,6 +204,12 @@ public:
}
/**
+ * If we are using this ReadBuffer to unflatten drawable, this function should
+ * be called. It will register the default unflattening proc for SkRecordedDrawable.
+ */
+ void initDrawableFactories();
+
+ /**
* For an input flattenable (specified by name), set a custom factory proc
* to use when unflattening. Will make a copy of |name|.
*

Powered by Google App Engine
This is Rietveld 408576698