| Index: src/images/SkImageDecoder_libwebp.cpp
|
| diff --git a/src/images/SkImageDecoder_libwebp.cpp b/src/images/SkImageDecoder_libwebp.cpp
|
| index 02990258ebe84dbce0f46c5436a95b24b8bfe8b2..4e23e50f5760fcf2024799265d7b4257823cf071 100644
|
| --- a/src/images/SkImageDecoder_libwebp.cpp
|
| +++ b/src/images/SkImageDecoder_libwebp.cpp
|
| @@ -555,6 +555,15 @@
|
| rgb[0] = SkGetPackedR32(c);
|
| rgb[1] = SkGetPackedG32(c);
|
| rgb[2] = SkGetPackedB32(c);
|
| + rgb += 3;
|
| + }
|
| +}
|
| +
|
| +static void Alpha8_To_RGB(const uint8_t* in, uint8_t* rgb, int width,
|
| + const SkPMColor* SK_RESTRICT ctable) {
|
| + const uint8_t* SK_RESTRICT src = (const uint8_t*)in;
|
| + for (int i = 0; i < width; ++i) {
|
| + rgb[0] = rgb[1] = rgb[2] = *src++;
|
| rgb += 3;
|
| }
|
| }
|
| @@ -585,6 +594,9 @@
|
| case SkBitmap::kIndex8_Config:
|
| *bpp = 3;
|
| return Index8_To_RGB;
|
| + case SkBitmap::kA8_Config:
|
| + *bpp = 3;
|
| + return Alpha8_To_RGB;
|
| default:
|
| return NULL;
|
| }
|
|
|