diff options
author | 2012-03-28 20:47:01 +0000 | |
---|---|---|
committer | 2012-03-28 20:47:01 +0000 | |
commit | 5370cd969d8f3957e4306068e6195ac1bca3d6cd (patch) | |
tree | cf1639cfb2dcc013e992f75b86056455bbe8ad18 /src/images/SkImageRef_GlobalPool.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/images/SkImageRef_GlobalPool.cpp')
-rw-r--r-- | src/images/SkImageRef_GlobalPool.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/images/SkImageRef_GlobalPool.cpp b/src/images/SkImageRef_GlobalPool.cpp index b774023956..bd63f729be 100644 --- a/src/images/SkImageRef_GlobalPool.cpp +++ b/src/images/SkImageRef_GlobalPool.cpp @@ -71,11 +71,7 @@ SkImageRef_GlobalPool::SkImageRef_GlobalPool(SkFlattenableReadBuffer& buffer) this->mutex()->release(); } -SkPixelRef* SkImageRef_GlobalPool::Create(SkFlattenableReadBuffer& buffer) { - return SkNEW_ARGS(SkImageRef_GlobalPool, (buffer)); -} - -SK_DEFINE_PIXEL_REF_REGISTRAR(SkImageRef_GlobalPool) +SK_DEFINE_FLATTENABLE_REGISTRAR(SkImageRef_GlobalPool) /////////////////////////////////////////////////////////////////////////////// // global imagerefpool wrappers |