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

Commit 1bd88fc3 authored by Dan Stoza's avatar Dan Stoza Committed by android-build-merger
Browse files

HWC2On1: Fall back to GLES for SolidColor am: 5df47cb6 am: d946ae67

am: 9e718be5

Change-Id: I9644bee3005e9d819fa375c41ee36b6f0e04287e
parents 023394a9 9e718be5
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -2306,7 +2306,14 @@ void HWC2On1Adapter::Layer::applyCompositionType(hwc_layer_1_t& hwc1Layer,
                hwc1Layer.compositionType = HWC_FRAMEBUFFER;
                break;
            case Composition::SolidColor:
                hwc1Layer.compositionType = HWC_BACKGROUND;
                // In theory the following line should work, but since the HWC1
                // version of SurfaceFlinger never used HWC_BACKGROUND, HWC1
                // devices may not work correctly. To be on the safe side, we
                // fall back to client composition.
                //
                // hwc1Layer.compositionType = HWC_BACKGROUND;
                hwc1Layer.compositionType = HWC_FRAMEBUFFER;
                hwc1Layer.flags |= HWC_SKIP_LAYER;
                break;
            case Composition::Cursor:
                hwc1Layer.compositionType = HWC_FRAMEBUFFER;