OSDN Git Service

SurfaceFlinger supports ClearClientTarget for Sideband
authorGray Huang <gray.huang@mediatek.com>
Wed, 11 Jan 2017 05:41:09 +0000 (13:41 +0800)
committerWally Yau <wyau@google.com>
Mon, 6 Feb 2017 22:05:00 +0000 (14:05 -0800)
When clearing the layer's intersection with the dirty region,
HWC2::Composition::Sideband layer needs to be cleared as well.

Bug: 33443134
Test: manual - enter PIP mode with Live Channel
Change-Id: I4fecc7b5db8a2bf220b681bd087264290d1a2443

services/surfaceflinger/SurfaceFlinger.cpp

index dabece2..5eea3d9 100644 (file)
@@ -2143,6 +2143,7 @@ bool SurfaceFlinger::doComposeSurfaces(
                 switch (layer->getCompositionType(hwcId)) {
                     case HWC2::Composition::Cursor:
                     case HWC2::Composition::Device:
+                    case HWC2::Composition::Sideband:
                     case HWC2::Composition::SolidColor: {
                         const Layer::State& state(layer->getDrawingState());
                         if (layer->getClearClientTarget(hwcId) && !firstLayer &&