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

Commit 65924a3e authored by Chris Craik's avatar Chris Craik
Browse files

fix functor flag parsing, tweak process delay

Change-Id: I0a679cc33f92ff6fd2e33db9ad58b52622def012
parent 7c8fd157
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -517,7 +517,7 @@ public abstract class HardwareRenderer {
        static final int SURFACE_STATE_SUCCESS = 1;
        static final int SURFACE_STATE_UPDATED = 2;

        static final int FUNCTOR_PROCESS_DELAY = 2;
        static final int FUNCTOR_PROCESS_DELAY = 4;

        static EGL10 sEgl;
        static EGLDisplay sEglDisplay;
+2 −2
Original line number Diff line number Diff line
@@ -260,7 +260,7 @@ status_t OpenGLRenderer::invokeFunctors(Rect& dirty) {
            Rect localDirty(info.dirtyLeft, info.dirtyTop, info.dirtyRight, info.dirtyBottom);
            dirty.unionWith(localDirty);

            if (result == DrawGlInfo::kStatusInvoke) {
            if (result & DrawGlInfo::kStatusInvoke) {
                mFunctors.push(f);
            }
        }
@@ -300,7 +300,7 @@ status_t OpenGLRenderer::callDrawGLFunction(Functor* functor, Rect& dirty) {
        Rect localDirty(info.dirtyLeft, info.dirtyTop, info.dirtyRight, info.dirtyBottom);
        dirty.unionWith(localDirty);

        if (result == DrawGlInfo::kStatusInvoke) {
        if (result & DrawGlInfo::kStatusInvoke) {
            mFunctors.push(functor);
        }
    }