* commit '9b4b1180941f4d2ef9d3e7bd26bc1855ff9fb141': only clear FB when asked for the opaque layer
This commit is contained in:
commit
c5214289d6
@ -1604,9 +1604,10 @@ void SurfaceFlinger::doComposeSurfaces(const sp<const DisplayDevice>& hw, const
|
|||||||
if (!clip.isEmpty()) {
|
if (!clip.isEmpty()) {
|
||||||
switch (cur->getCompositionType()) {
|
switch (cur->getCompositionType()) {
|
||||||
case HWC_OVERLAY: {
|
case HWC_OVERLAY: {
|
||||||
|
const Layer::State& state(layer->getDrawingState());
|
||||||
if ((cur->getHints() & HWC_HINT_CLEAR_FB)
|
if ((cur->getHints() & HWC_HINT_CLEAR_FB)
|
||||||
&& i
|
&& i
|
||||||
&& layer->isOpaque()
|
&& layer->isOpaque() && (state.alpha == 0xFF)
|
||||||
&& hasGlesComposition) {
|
&& hasGlesComposition) {
|
||||||
// never clear the very first layer since we're
|
// never clear the very first layer since we're
|
||||||
// guaranteed the FB is already cleared
|
// guaranteed the FB is already cleared
|
||||||
|
Loading…
Reference in New Issue
Block a user