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

Commit 044bdde5 authored by Steve Kondik's avatar Steve Kondik Committed by Ethan Chen
Browse files

bootanim: Add continuous splash support

 * We may or may not want to have a very smooth transition from the
   bootloader into Android by way of a continuous splash feature.
 * Add a compile-time flag which disables the initial screen clearing
   so that we don't drop a frame during the transition.

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

ifeq ($(TARGET_CONTINUOUS_SPLASH_ENABLED),true)
    LOCAL_CFLAGS += -DCONTINUOUS_SPLASH
endif

LOCAL_MODULE:= bootanimation

ifdef TARGET_32_BIT_SURFACEFLINGER
+2 −0
Original line number Diff line number Diff line
@@ -657,6 +657,7 @@ bool BootAnimation::movie()

    mZip->endIteration(cookie);

#ifndef CONTINUOUS_SPLASH
    // clear screen
    glShadeModel(GL_FLAT);
    glDisable(GL_DITHER);
@@ -666,6 +667,7 @@ bool BootAnimation::movie()
    glClear(GL_COLOR_BUFFER_BIT);

    eglSwapBuffers(mDisplay, mSurface);
#endif

    glBindTexture(GL_TEXTURE_2D, 0);
    glEnable(GL_TEXTURE_2D);