Loading libs/hwui/jni/GIFMovie.cpp +5 −5 Original line number Diff line number Diff line Loading @@ -63,7 +63,7 @@ GIFMovie::GIFMovie(SkStream* stream) } fCurrIndex = -1; fLastDrawIndex = -1; fPaintingColor = SK_AlphaTRANSPARENT; fPaintingColor = SkPackARGB32(0, 0, 0, 0); } GIFMovie::~GIFMovie() Loading Loading @@ -127,7 +127,7 @@ static void copyLine(uint32_t* dst, const unsigned char* src, const ColorMapObje for (; width > 0; width--, src++, dst++) { if (*src != transparent && *src < cmap->ColorCount) { const GifColorType& col = cmap->Colors[*src]; *dst = SkColorSetRGB(col.Red, col.Green, col.Blue); *dst = SkPackARGB32(0xFF, col.Red, col.Green, col.Blue); } } } Loading Loading @@ -395,10 +395,10 @@ bool GIFMovie::onGetBitmap(SkBitmap* bm) lastIndex = fGIF->ImageCount - 1; } SkColor bgColor = SK_ColorTRANSPARENT; SkColor bgColor = SkPackARGB32(0, 0, 0, 0); if (gif->SColorMap != nullptr && gif->SBackGroundColor < gif->SColorMap->ColorCount) { const GifColorType& col = gif->SColorMap->Colors[gif->SBackGroundColor]; bgColor = SkColorSetRGB(col.Red, col.Green, col.Blue); bgColor = SkColorSetARGB(0xFF, col.Red, col.Green, col.Blue); } // draw each frames - not intelligent way Loading @@ -411,7 +411,7 @@ bool GIFMovie::onGetBitmap(SkBitmap* bm) if (!trans && gif->SColorMap != nullptr) { fPaintingColor = bgColor; } else { fPaintingColor = SK_ColorTRANSPARENT; fPaintingColor = SkColorSetARGB(0, 0, 0, 0); } bm->eraseColor(fPaintingColor); Loading Loading
libs/hwui/jni/GIFMovie.cpp +5 −5 Original line number Diff line number Diff line Loading @@ -63,7 +63,7 @@ GIFMovie::GIFMovie(SkStream* stream) } fCurrIndex = -1; fLastDrawIndex = -1; fPaintingColor = SK_AlphaTRANSPARENT; fPaintingColor = SkPackARGB32(0, 0, 0, 0); } GIFMovie::~GIFMovie() Loading Loading @@ -127,7 +127,7 @@ static void copyLine(uint32_t* dst, const unsigned char* src, const ColorMapObje for (; width > 0; width--, src++, dst++) { if (*src != transparent && *src < cmap->ColorCount) { const GifColorType& col = cmap->Colors[*src]; *dst = SkColorSetRGB(col.Red, col.Green, col.Blue); *dst = SkPackARGB32(0xFF, col.Red, col.Green, col.Blue); } } } Loading Loading @@ -395,10 +395,10 @@ bool GIFMovie::onGetBitmap(SkBitmap* bm) lastIndex = fGIF->ImageCount - 1; } SkColor bgColor = SK_ColorTRANSPARENT; SkColor bgColor = SkPackARGB32(0, 0, 0, 0); if (gif->SColorMap != nullptr && gif->SBackGroundColor < gif->SColorMap->ColorCount) { const GifColorType& col = gif->SColorMap->Colors[gif->SBackGroundColor]; bgColor = SkColorSetRGB(col.Red, col.Green, col.Blue); bgColor = SkColorSetARGB(0xFF, col.Red, col.Green, col.Blue); } // draw each frames - not intelligent way Loading @@ -411,7 +411,7 @@ bool GIFMovie::onGetBitmap(SkBitmap* bm) if (!trans && gif->SColorMap != nullptr) { fPaintingColor = bgColor; } else { fPaintingColor = SK_ColorTRANSPARENT; fPaintingColor = SkColorSetARGB(0, 0, 0, 0); } bm->eraseColor(fPaintingColor); Loading