mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 983273 - HwcComposer2D should honor HWC_HINT_CLEAR_FB for bottom layer. r=dwilson
This commit is contained in:
parent
88c9288b81
commit
4b8aa434ef
@ -545,11 +545,9 @@ HwcComposer2D::TryHwComposition()
|
||||
// Overlay Composition, set layer composition flag
|
||||
// on mapped LayerComposite to skip GPU composition
|
||||
mHwcLayerMap[k]->SetLayerComposited(true);
|
||||
if (k && (mList->hwLayers[k].hints & HWC_HINT_CLEAR_FB) &&
|
||||
if ((mList->hwLayers[k].hints & HWC_HINT_CLEAR_FB) &&
|
||||
(mList->hwLayers[k].blending == HWC_BLENDING_NONE)) {
|
||||
// Clear visible rect on FB with transparent pixels.
|
||||
// Never clear the 1st layer since we're guaranteed
|
||||
// that FB is already cleared.
|
||||
hwc_rect_t r = mList->hwLayers[k].displayFrame;
|
||||
mHwcLayerMap[k]->SetClearRect(nsIntRect(r.left, r.top,
|
||||
r.right - r.left,
|
||||
|
Loading…
Reference in New Issue
Block a user