diff options
author | 2012-03-26 17:57:35 +0000 | |
---|---|---|
committer | 2012-03-26 17:57:35 +0000 | |
commit | ba28d03e94dc221d6a803bf2a84a420b9159255c (patch) | |
tree | 1130187c2342abd92cc0782e724ad57fc551872a /include/effects/SkLayerDrawLooper.h | |
parent | d43b0a87f85ca26ec771e094c62df33b0537b563 (diff) |
Create macro for registering classes for deserialization
Review URL: https://codereview.appspot.com/5909063
git-svn-id: http://skia.googlecode.com/svn/trunk@3494 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/effects/SkLayerDrawLooper.h')
-rw-r--r-- | include/effects/SkLayerDrawLooper.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/include/effects/SkLayerDrawLooper.h b/include/effects/SkLayerDrawLooper.h index b9b080232d..3e7306fb93 100644 --- a/include/effects/SkLayerDrawLooper.h +++ b/include/effects/SkLayerDrawLooper.h @@ -101,17 +101,13 @@ public: virtual void init(SkCanvas*); virtual bool next(SkCanvas*, SkPaint* paint); - // must be public for Registrar :( - static SkFlattenable* CreateProc(SkFlattenableReadBuffer& buffer) { - return SkNEW_ARGS(SkLayerDrawLooper, (buffer)); - } + SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkLayerDrawLooper) protected: SkLayerDrawLooper(SkFlattenableReadBuffer&); // overrides from SkFlattenable virtual void flatten(SkFlattenableWriteBuffer& ); - virtual Factory getFactory() { return CreateProc; } private: struct Rec { |