| Index: src/images/SkImageDecoder_libgif.cpp
|
| diff --git a/src/images/SkImageDecoder_libgif.cpp b/src/images/SkImageDecoder_libgif.cpp
|
| index 7b6a4741df8756ca68b7b9061d59aa8f1cc941b3..0c8461f893e5f3e938ac3e1c1fb371ae6bf000d9 100644
|
| --- a/src/images/SkImageDecoder_libgif.cpp
|
| +++ b/src/images/SkImageDecoder_libgif.cpp
|
| @@ -192,7 +192,7 @@ static bool skip_src_rows(GifFileType* gif, uint8_t* dst, int width, int rowsToS
|
| * fixes it. This makes the output image consistantly deterministic.
|
| */
|
| static void sanitize_indexed_bitmap(SkBitmap* bm) {
|
| - if ((SkBitmap::kIndex8_Config == bm->config()) && !(bm->empty())) {
|
| + if ((kIndex_8_SkColorType == bm->colorType()) && !(bm->empty())) {
|
| SkAutoLockPixels alp(*bm);
|
| if (NULL != bm->getPixels()) {
|
| SkColorTable* ct = bm->getColorTable(); // Index8 must have it.
|
|
|