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

Commit 0e444d2c authored by Neti Ravi Kumar's avatar Neti Ravi Kumar Committed by Giulio Cervera
Browse files

Fix 'Avoid Binding Texture' logic in SurfaceTexture & SurfaceFlinger

CRs-fixed: 335449
parent 34fda34f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -858,8 +858,8 @@ status_t SurfaceTexture::updateTexImage() {
        EGLDisplay dpy = eglGetCurrentDisplay();
#ifdef QCOM_HARDWARE
        if (isGPUSupportedFormat(mSlots[buf].mGraphicBuffer->format) &&
           (avoidBindTexture == false) ||
           (isGPUSupportedFormatInHW(mSlots[buf].mGraphicBuffer->format))) {
            ((avoidBindTexture == false) ||
            (isGPUSupportedFormatInHW(mSlots[buf].mGraphicBuffer->format)))) {
#endif
        if (image == EGL_NO_IMAGE_KHR) {
            if (mSlots[buf].mGraphicBuffer == 0) {
+1 −1
Original line number Diff line number Diff line
@@ -447,7 +447,7 @@ void Layer::lockPageFlip(bool& recomputeVisibleRegions)
#ifdef QCOM_HARDWARE
        const DisplayHardware& hw(graphicPlane(0).displayHardware());
        
        bool avoidTex = (hw.getFlags() | DisplayHardware::C2D_COMPOSITION) ? 
        bool avoidTex = (hw.getFlags() & DisplayHardware::C2D_COMPOSITION) ?
                          true : false;

        if (mSurfaceTexture->updateTexImage(avoidTex) < NO_ERROR) {