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

Commit 088674c6 authored by Shibin George's avatar Shibin George Committed by android-build-merger
Browse files

Merge "Merge "Check if mSurface is valid before create SurfaceSession" am:...

Merge "Merge "Check if mSurface is valid before create SurfaceSession" am: fe118cfd am: 07eeea78" into pi-dev-plus-aosp
am: 82d291ec

Change-Id: Ief5fd677b1bb7b3dc051b6a3332eeb1c7726535f
parents 6a28aff6 82d291ec
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -302,6 +302,9 @@ class TaskSnapshotSurface implements StartingSurface {
    }

    private void drawSizeMismatchSnapshot(GraphicBuffer buffer) {
        if (!mSurface.isValid()) {
            throw new IllegalStateException("mSurface does not hold a valid surface.");
        }
        final SurfaceSession session = new SurfaceSession(mSurface);

        // Keep a reference to it such that it doesn't get destroyed when finalized.