diff options
author | 2012-03-28 20:47:01 +0000 | |
---|---|---|
committer | 2012-03-28 20:47:01 +0000 | |
commit | 5370cd969d8f3957e4306068e6195ac1bca3d6cd (patch) | |
tree | cf1639cfb2dcc013e992f75b86056455bbe8ad18 /src/core/SkMallocPixelRef.cpp | |
parent | a728e35edcffd99216e3965a4b908ad0df7f69c2 (diff) |
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
Diffstat (limited to 'src/core/SkMallocPixelRef.cpp')
-rw-r--r-- | src/core/SkMallocPixelRef.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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) |