mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-11 16:32:59 +00:00
Bug 1136766 - Don't allow more draw calls after culling. r=mattwoodrow
--HG-- extra : commitid : DKmD0O544RW
This commit is contained in:
parent
613a5755ba
commit
7f46e67522
@ -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