From 5370cd969d8f3957e4306068e6195ac1bca3d6cd Mon Sep 17 00:00:00 2001 From: "djsollen@google.com" Date: Wed, 28 Mar 2012 20:47:01 +0000 Subject: Consolidate PixelRef flattables with the standard impl The flatten method on these functions can no longer be const as SkFlattenables declaration is not const and would result in the const methods only being called when the reference to the object was const. Review URL: https://codereview.appspot.com/5941043 git-svn-id: http://skia.googlecode.com/svn/trunk@3533 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/core/SkMallocPixelRef.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/SkMallocPixelRef.cpp') diff --git a/src/core/SkMallocPixelRef.cpp b/src/core/SkMallocPixelRef.cpp index 3e220756dd..1cf64a1db0 100644 --- a/src/core/SkMallocPixelRef.cpp +++ b/src/core/SkMallocPixelRef.cpp @@ -34,7 +34,7 @@ void SkMallocPixelRef::onUnlockPixels() { // nothing to do } -void SkMallocPixelRef::flatten(SkFlattenableWriteBuffer& buffer) const { +void SkMallocPixelRef::flatten(SkFlattenableWriteBuffer& buffer) { this->INHERITED::flatten(buffer); buffer.write32(fSize); @@ -59,4 +59,4 @@ SkMallocPixelRef::SkMallocPixelRef(SkFlattenableReadBuffer& buffer) } } -SK_DEFINE_PIXEL_REF_REGISTRAR(SkMallocPixelRef) +SK_DEFINE_FLATTENABLE_REGISTRAR(SkMallocPixelRef) -- cgit v1.2.3