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

Commit 056acd07 authored by Michael Bestas's avatar Michael Bestas Committed by Abhisek Devkota
Browse files

Revert "bootanimation: Allow devices to avoid loading many textures"

This reverts commit 1bf219d9.

Change-Id: I535e42c584d61156543b1c64c5b5cbb82101385c
parent 8bfc4b15
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -24,10 +24,6 @@ LOCAL_SHARED_LIBRARIES := \
    libtinyalsa \
    libmedia

ifeq ($(TARGET_SAVE_RAM_IN_BOOTANIMATION),true)
    LOCAL_CFLAGS += -DSAVE_RAM_IN_BOOTANIMATION
endif

ifeq ($(TARGET_CONTINUOUS_SPLASH_ENABLED),true)
    LOCAL_CFLAGS += -DCONTINUOUS_SPLASH
endif
+0 −4
Original line number Diff line number Diff line
@@ -706,11 +706,7 @@ bool BootAnimation::movie()
        GLuint mTextureid;
        glGetIntegerv(GL_MAX_TEXTURE_SIZE, &mMaxTextureSize);
        //ALOGD("freemem:%ld, %d", getFreeMemory(), mMaxTextureSize);
#ifdef SAVE_RAM_IN_BOOTANIMATION
        {
#else
        if(getFreeMemory() < mMaxTextureSize * mMaxTextureSize * fcount / 1024) {
#endif
            ALOGD("Use save memory method, maybe small fps in actual.");
            needSaveMem = true;
            glGenTextures(1, &mTextureid);