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

Commit dec3f138 authored by John Reck's avatar John Reck Committed by Android (Google) Code Review
Browse files

Merge "Force-use the pbuffer surface for destroy" into lmp-mr1-dev

parents c1de25d8 b945f231
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -60,6 +60,8 @@ CanvasContext::~CanvasContext() {

void CanvasContext::destroy() {
    stopDrawing();
    setSurface(NULL);
    mEglManager.usePBufferSurface();
    freePrefetechedLayers();
    destroyHardwareResources();
    mAnimationContext->destroy();
@@ -67,7 +69,6 @@ void CanvasContext::destroy() {
        delete mCanvas;
        mCanvas = 0;
    }
    setSurface(NULL);
}

void CanvasContext::setSurface(ANativeWindow* window) {