Index: samplecode/SampleTinyBitmap.cpp |
diff --git a/samplecode/SampleTinyBitmap.cpp b/samplecode/SampleTinyBitmap.cpp |
index dc7157ff99656c2bb135629dc626ffe8ddf93556..72664c7fc81f1d86848d18b3e2f81ddcac56a47a 100644 |
--- a/samplecode/SampleTinyBitmap.cpp |
+++ b/samplecode/SampleTinyBitmap.cpp |
@@ -58,12 +58,6 @@ protected: |
static void setBitmapOpaque(SkBitmap* bm, bool isOpaque) { |
SkAutoLockPixels alp(*bm); // needed for ctable |
bm->setAlphaType(isOpaque ? kOpaque_SkAlphaType : kPremul_SkAlphaType); |
-#if 0 |
- SkColorTable* ctable = bm->getColorTable(); |
- if (ctable) { |
- ctable->setIsOpaque(isOpaque); |
- } |
-#endif |
} |
virtual void onDrawContent(SkCanvas* canvas) { |