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

Commit 03aca1be authored by Victor(Weiguo) Pan's avatar Victor(Weiguo) Pan Committed by Ricardo Cerqueira
Browse files

performance tuneup

Add glFinish() to prevent the impedence mismatch
   between software-rendered surfaceflinger surfaces
   in another thread.

Bug 814812

Change-Id: Ie5c24c8829e9b90a95e86e013fec9dae946deaaa
parent 6ef9ffe2
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -332,6 +332,9 @@ void DisplayHardware::flip(const Region& dirty) const
    
    mPageFlipCount++;
    eglSwapBuffers(dpy, surface);
    // glFinish here prevents the impedence mismatch between software-rendered
    // surfaceflinger surfaces in another thread. Shows no perf loss with vsync on.
    glFinish();
    checkEGLErrors("eglSwapBuffers");

    // for debugging