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

Commit 046bd306 authored by John Reck's avatar John Reck
Browse files

Fix drawing cache on sw drawing

Bug: 26644517
Change-Id: Ie087a05e1dbab75040ca39e0c43df985f8afed3e
parent 44ba79e4
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -16582,11 +16582,12 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
        RenderNode renderNode = null;
        Bitmap cache = null;
        int layerType = getLayerType(); // TODO: signify cache state with just 'cache' local
        if (layerType == LAYER_TYPE_SOFTWARE
                || (!drawingWithRenderNode && layerType != LAYER_TYPE_NONE)) {
        if (layerType == LAYER_TYPE_SOFTWARE || !drawingWithRenderNode) {
             if (layerType != LAYER_TYPE_NONE) {
                 // If not drawing with RenderNode, treat HW layers as SW
                 layerType = LAYER_TYPE_SOFTWARE;
                 buildDrawingCache(true);
            }
            cache = getDrawingCache(true);
        }