Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ed7a8e13 authored by Ricardo Cerqueira's avatar Ricardo Cerqueira Committed by Gerrit Code Review
Browse files

Merge "bootanimation: allow using RGB565 instead of ARGB8888" into jellybean

parents 306a69d9 20428287
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -33,6 +33,10 @@ ifeq ($(TARGET_BOOTANIMATION_TEXTURE_CACHE),false)
    LOCAL_CFLAGS += -DNO_TEXTURE_CACHE=1
endif

ifeq ($(TARGET_BOOTANIMATION_USE_RGB565),true)
    LOCAL_CFLAGS += -DUSE_565
endif

LOCAL_MODULE:= bootanimation


+4 −0
Original line number Diff line number Diff line
@@ -161,7 +161,11 @@ status_t BootAnimation::initTexture(void* buffer, size_t len)
    codec->setDitherImage(false);
    if (codec) {
        codec->decode(&stream, &bitmap,
                #ifdef USE_565
                SkBitmap::kRGB_565_Config,
                #else
                SkBitmap::kARGB_8888_Config,
                #endif
                SkImageDecoder::kDecodePixels_Mode);
        delete codec;
    }