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

Commit 3577e98f authored by Mathias Agopian's avatar Mathias Agopian Committed by Android Git Automerger
Browse files

am 3d4a9774: am b0e020ab: Merge "may fix 3097381 and 3097482. don\'t abort...

am 3d4a9774: am b0e020ab: Merge "may fix 3097381 and 3097482. don\'t abort on/off if the animation fails" into gingerbread

Merge commit '3d4a9774'

* commit '3d4a9774':
  may fix 3097381 and 3097482. don't abort on/off if the animation fails
parents 64144c44 3d4a9774
Loading
Loading
Loading
Loading
+7 −10
Original line number Diff line number Diff line
@@ -1683,6 +1683,7 @@ status_t SurfaceFlinger::renderScreenToTextureLocked(DisplayID dpy,
    glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB,
            hw_w, hw_h, 0, GL_RGB, GL_UNSIGNED_BYTE, 0);
    if (glGetError() != GL_NO_ERROR) {
        while ( glGetError() != GL_NO_ERROR ) ;
        GLint tw = (2 << (31 - clz(hw_w)));
        GLint th = (2 << (31 - clz(hw_h)));
        glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB,
@@ -2014,11 +2015,9 @@ status_t SurfaceFlinger::turnElectronBeamOffImplLocked()
        // we're already off
        return NO_ERROR;
    }
    status_t result = electronBeamOffAnimationImplLocked();
    if (result == NO_ERROR) {
    electronBeamOffAnimationImplLocked();
    hw.setCanDraw(false);
    }
    return result;
    return NO_ERROR;
}

status_t SurfaceFlinger::turnElectronBeamOff(int32_t mode)
@@ -2065,11 +2064,9 @@ status_t SurfaceFlinger::turnElectronBeamOnImplLocked()
        // we're already on
        return NO_ERROR;
    }
    status_t result = electronBeamOnAnimationImplLocked();
    if (result == NO_ERROR) {
    electronBeamOnAnimationImplLocked();
    hw.setCanDraw(true);
    }
    return result;
    return NO_ERROR;
}

status_t SurfaceFlinger::turnElectronBeamOn(int32_t mode)