Loading services/surfaceflinger/ColorLayer.cpp +1 −2 Original line number Diff line number Diff line Loading @@ -68,8 +68,7 @@ void ColorLayer::drawNow(const RenderArea& renderArea, bool useIdentityTransform } bool ColorLayer::isVisible() const { const Layer::State& s(getDrawingState()); return !isHiddenByPolicy() && s.color.a; return !isHiddenByPolicy() && getAlpha() > 0.0f; } void ColorLayer::setPerFrameData(const sp<const DisplayDevice>& display) { Loading services/surfaceflinger/SurfaceFlinger.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -3214,7 +3214,8 @@ bool SurfaceFlinger::doComposeSurfaces(const sp<const DisplayDevice>& display) { case HWC2::Composition::SolidColor: { const Layer::State& state(layer->getDrawingState()); if (layer->getClearClientTarget(displayId) && !firstLayer && layer->isOpaque(state) && (state.color.a == 1.0f) && hasClientComposition) { layer->isOpaque(state) && (layer->getAlpha() == 1.0f) && hasClientComposition) { // never clear the very first layer since we're // guaranteed the FB is already cleared layer->clearWithOpenGL(renderArea); Loading Loading
services/surfaceflinger/ColorLayer.cpp +1 −2 Original line number Diff line number Diff line Loading @@ -68,8 +68,7 @@ void ColorLayer::drawNow(const RenderArea& renderArea, bool useIdentityTransform } bool ColorLayer::isVisible() const { const Layer::State& s(getDrawingState()); return !isHiddenByPolicy() && s.color.a; return !isHiddenByPolicy() && getAlpha() > 0.0f; } void ColorLayer::setPerFrameData(const sp<const DisplayDevice>& display) { Loading
services/surfaceflinger/SurfaceFlinger.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -3214,7 +3214,8 @@ bool SurfaceFlinger::doComposeSurfaces(const sp<const DisplayDevice>& display) { case HWC2::Composition::SolidColor: { const Layer::State& state(layer->getDrawingState()); if (layer->getClearClientTarget(displayId) && !firstLayer && layer->isOpaque(state) && (state.color.a == 1.0f) && hasClientComposition) { layer->isOpaque(state) && (layer->getAlpha() == 1.0f) && hasClientComposition) { // never clear the very first layer since we're // guaranteed the FB is already cleared layer->clearWithOpenGL(renderArea); Loading