From b263985850a7a74ccd5fda2abb057b04f7254e41 Mon Sep 17 00:00:00 2001 From: "commit-bot@chromium.org" Date: Wed, 28 May 2014 16:01:55 +0000 Subject: add colortable support to imagegenerator BUG=skia: R=halcanary@google.com, scroggo@google.com Author: reed@google.com Review URL: https://codereview.chromium.org/304443003 git-svn-id: http://skia.googlecode.com/svn/trunk@14916 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/lazy/SkDiscardablePixelRef.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/lazy/SkDiscardablePixelRef.h') diff --git a/src/lazy/SkDiscardablePixelRef.h b/src/lazy/SkDiscardablePixelRef.h index e5e1c9f0e1..52a1d6ce37 100644 --- a/src/lazy/SkDiscardablePixelRef.h +++ b/src/lazy/SkDiscardablePixelRef.h @@ -17,10 +17,6 @@ * A PixelRef backed by SkDiscardableMemory, with the ability to * re-generate the pixels (via a SkImageGenerator) if the DM is * purged. - * - * Since SkColorTable is reference-counted, we do not support indexed - * color with this class; there would be no way for the discardable - * memory system to unref the color table. */ class SkDiscardablePixelRef : public SkPixelRef { public: @@ -46,6 +42,7 @@ private: // PixelRef, since the SkBitmap doesn't expect them to change. SkDiscardableMemory* fDiscardableMemory; + SkAutoTUnref fCTable; /* Takes ownership of SkImageGenerator. */ SkDiscardablePixelRef(const SkImageInfo&, SkImageGenerator*, -- cgit v1.2.3