Index: src/lazy/SkDiscardablePixelRef.h |
diff --git a/src/lazy/SkDiscardablePixelRef.h b/src/lazy/SkDiscardablePixelRef.h |
index 52a1d6ce3708d1df1db1bccf5bff93daa223bb43..e5e1c9f0e19e50a54056664c3c91cf548afe7748 100644 |
--- a/src/lazy/SkDiscardablePixelRef.h |
+++ b/src/lazy/SkDiscardablePixelRef.h |
@@ -17,6 +17,10 @@ |
* 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: |
@@ -42,7 +46,6 @@ |
// PixelRef, since the SkBitmap doesn't expect them to change. |
SkDiscardableMemory* fDiscardableMemory; |
- SkAutoTUnref<SkColorTable> fCTable; |
/* Takes ownership of SkImageGenerator. */ |
SkDiscardablePixelRef(const SkImageInfo&, SkImageGenerator*, |