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

Commit 68be3529 authored by Chris Craik's avatar Chris Craik
Browse files

Destroy drawing cache when switching layer type

bug:27099358

Change-Id: Ia308dd817799b6d64a802df211c39efc25c99e7e
parent e1b1ce77
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -15741,8 +15741,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();
        }