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

Commit 2344c6a2 authored by Chris Craik's avatar Chris Craik Committed by Android (Google) Code Review
Browse files

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

parents 8ad84194 68be3529
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();
        }