aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkBitmap.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/core/SkBitmap.h')
-rw-r--r--include/core/SkBitmap.h14
1 files changed, 3 insertions, 11 deletions
diff --git a/include/core/SkBitmap.h b/include/core/SkBitmap.h
index 81c0342ff9..dd9dc61bc0 100644
--- a/include/core/SkBitmap.h
+++ b/include/core/SkBitmap.h
@@ -53,18 +53,12 @@ public:
kRGB_565_Config, //!< 16-bits per pixel, (see SkColorPriv.h for packing)
kARGB_4444_Config, //!< 16-bits per pixel, (see SkColorPriv.h for packing)
kARGB_8888_Config, //!< 32-bits per pixel, (see SkColorPriv.h for packing)
- /**
- * Custom compressed format, not supported on all platforms.
- * Cannot be used as a destination (target of a canvas).
- * i.e. you may be able to draw from one, but you cannot draw into one.
- */
- kRLE_Index8_Config,
};
// do not add this to the Config enum, otherwise the compiler will let us
// pass this as a valid parameter for Config.
enum {
- kConfigCount = kRLE_Index8_Config + 1
+ kConfigCount = kARGB_8888_Config + 1
};
/**
@@ -366,9 +360,7 @@ public:
*/
bool readyToDraw() const {
return this->getPixels() != NULL &&
- ((this->config() != kIndex8_Config &&
- this->config() != kRLE_Index8_Config) ||
- fColorTable != NULL);
+ (this->config() != kIndex8_Config || NULL != fColorTable);
}
/** Returns the pixelRef's texture, or NULL
@@ -376,7 +368,7 @@ public:
SkGpuTexture* getTexture() const;
/** Return the bitmap's colortable, if it uses one (i.e. fConfig is
- kIndex8_Config or kRLE_Index8_Config) and the pixels are locked.
+ kIndex8_Config) and the pixels are locked.
Otherwise returns NULL. Does not affect the colortable's
reference count.
*/