Loading services/core/java/com/android/server/wm/TaskSnapshotSurface.java +3 −0 Original line number Original line Diff line number Diff line Loading @@ -302,6 +302,9 @@ class TaskSnapshotSurface implements StartingSurface { } } private void drawSizeMismatchSnapshot(GraphicBuffer buffer) { private void drawSizeMismatchSnapshot(GraphicBuffer buffer) { if (!mSurface.isValid()) { throw new IllegalStateException("mSurface does not hold a valid surface."); } final SurfaceSession session = new SurfaceSession(mSurface); final SurfaceSession session = new SurfaceSession(mSurface); // Keep a reference to it such that it doesn't get destroyed when finalized. // Keep a reference to it such that it doesn't get destroyed when finalized. Loading Loading
services/core/java/com/android/server/wm/TaskSnapshotSurface.java +3 −0 Original line number Original line Diff line number Diff line Loading @@ -302,6 +302,9 @@ class TaskSnapshotSurface implements StartingSurface { } } private void drawSizeMismatchSnapshot(GraphicBuffer buffer) { private void drawSizeMismatchSnapshot(GraphicBuffer buffer) { if (!mSurface.isValid()) { throw new IllegalStateException("mSurface does not hold a valid surface."); } final SurfaceSession session = new SurfaceSession(mSurface); final SurfaceSession session = new SurfaceSession(mSurface); // Keep a reference to it such that it doesn't get destroyed when finalized. // Keep a reference to it such that it doesn't get destroyed when finalized. Loading