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

Commit 8c743b0e authored by Chris Craik's avatar Chris Craik Committed by android-build-merger
Browse files

Merge "Destroy drawing cache when switching layer type" into nyc-dev

am: 2344c6a2

* commit '2344c6a2':
  Destroy drawing cache when switching layer type

Change-Id: I6b455a94c9fa8219201cc32099493fecf82afafc
parents 5802b598 2344c6a2
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -15742,8 +15742,10 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
            return;
        }
        // Destroy any previous software drawing cache if needed
        if (mLayerType == LAYER_TYPE_SOFTWARE) {
        if (layerType != LAYER_TYPE_SOFTWARE) {
            // Destroy any previous software drawing cache if present
            // NOTE: even if previous layer type is HW, we do this to ensure we've cleaned up
            // drawing cache created in View#draw when drawing to a SW canvas.
            destroyDrawingCache();
        }