diff options
Diffstat (limited to 'include/images/SkFlipPixelRef.h')
-rw-r--r-- | include/images/SkFlipPixelRef.h | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/include/images/SkFlipPixelRef.h b/include/images/SkFlipPixelRef.h index 455a3dace3..c9ba026878 100644 --- a/include/images/SkFlipPixelRef.h +++ b/include/images/SkFlipPixelRef.h @@ -32,6 +32,15 @@ public: const SkRegion& beginUpdate(SkBitmap* device); void endUpdate(); + + virtual void flatten(SkFlattenableWriteBuffer&); + SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkFlipPixelRef) + +protected: + virtual void* onLockPixels(SkColorTable**); + virtual void onUnlockPixels(); + + SkFlipPixelRef(SkFlattenableReadBuffer&); private: void getFrontBack(const void** front, void** back) const { @@ -50,22 +59,6 @@ private: static void CopyBitsFromAddr(const SkBitmap& dst, const SkRegion& clip, const void* srcAddr); - // serialization - -public: - virtual Factory getFactory() const { return Create; } - virtual void flatten(SkFlattenableWriteBuffer&) const; - static SkPixelRef* Create(SkFlattenableReadBuffer& buffer); - - SK_DECLARE_PIXEL_REF_REGISTRAR() - -protected: - virtual void* onLockPixels(SkColorTable**); - virtual void onUnlockPixels(); - - SkFlipPixelRef(SkFlattenableReadBuffer&); - -private: SkMutex fMutex; SkPageFlipper fFlipper; |