mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1136766 - Don't allow more draw calls after culling. r=mattwoodrow
This commit is contained in:
parent
bf924fc6dd
commit
d2e314042f
@ -226,7 +226,11 @@ LayerManagerComposite::ApplyOcclusionCulling(Layer* aLayer, nsIntRegion& aOpaque
|
||||
LayerComposite *composite = aLayer->AsLayerComposite();
|
||||
if (!localOpaque.IsEmpty()) {
|
||||
nsIntRegion visible = composite->GetShadowVisibleRegion();
|
||||
visible.Sub(visible, localOpaque);
|
||||
nsIntRegion afterCulling;
|
||||
afterCulling.Sub(visible, localOpaque);
|
||||
// Intersect the original region with the bounds of the culled region so
|
||||
// that we don't increase the region's complexity.
|
||||
visible.AndWith(afterCulling.GetBounds());
|
||||
composite->SetShadowVisibleRegion(visible);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user