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

Commit e39f7889 authored by John Reck's avatar John Reck Committed by Android Git Automerger
Browse files

am 0d4ab958: am 4e3404d9: am dec3f138: Merge "Force-use the pbuffer surface...

am 0d4ab958: am 4e3404d9: am dec3f138: Merge "Force-use the pbuffer surface for destroy" into lmp-mr1-dev

* commit '0d4ab958':
  Force-use the pbuffer surface for destroy
parents 2edf7d60 0d4ab958
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) {