diff options
author | 2012-07-23 16:54:30 +0000 | |
---|---|---|
committer | 2012-07-23 16:54:30 +0000 | |
commit | c1d1f414a08de25d8cbf4ba08fc64d701ffca32e (patch) | |
tree | 5eff292ff1b6e4ff29ea60ee71c1c4b470eb8de9 /include/core/SkMallocPixelRef.h | |
parent | 7d1941a72ecef29ba63d0059b5ebf5f189ac26b6 (diff) |
Remove Bitmaps Raw Pixel Support.
bitmap.setPixels(...) now creates a mutable pixelRef instead
of just setting fPixels.
Review URL: https://codereview.appspot.com/6419044
git-svn-id: http://skia.googlecode.com/svn/trunk@4722 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core/SkMallocPixelRef.h')
-rw-r--r-- | include/core/SkMallocPixelRef.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/core/SkMallocPixelRef.h b/include/core/SkMallocPixelRef.h index 802e2b2e36..1bf1afc694 100644 --- a/include/core/SkMallocPixelRef.h +++ b/include/core/SkMallocPixelRef.h @@ -21,7 +21,7 @@ public: last owner of this pixelref is gone. If addr is NULL, sk_malloc_throw() is called to allocate it. */ - SkMallocPixelRef(void* addr, size_t size, SkColorTable* ctable); + SkMallocPixelRef(void* addr, size_t size, SkColorTable* ctable, bool ownPixels = true); virtual ~SkMallocPixelRef(); //! Return the allocation size for the pixels @@ -42,6 +42,7 @@ private: void* fStorage; size_t fSize; SkColorTable* fCTable; + bool fOwnPixels; typedef SkPixelRef INHERITED; }; |