mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-14 20:22:00 +00:00
Bug 1117925: Make sure to invalidate the entire window when the size changes. r=jrmuizel
This commit is contained in:
parent
837bd03db3
commit
3b62ac5b76
@ -1050,6 +1050,7 @@ CompositorD3D11::BeginFrame(const nsIntRegion& aInvalidRegion,
|
||||
return;
|
||||
}
|
||||
|
||||
nsIntSize oldSize = mSize;
|
||||
UpdateRenderTarget();
|
||||
|
||||
// Failed to create a render target or the view.
|
||||
@ -1069,7 +1070,13 @@ CompositorD3D11::BeginFrame(const nsIntRegion& aInvalidRegion,
|
||||
nsIntRect intRect = nsIntRect(nsIntPoint(0, 0), mSize);
|
||||
// Sometimes the invalid region is larger than we want to draw.
|
||||
nsIntRegion invalidRegionSafe;
|
||||
invalidRegionSafe.And(aInvalidRegion, intRect);
|
||||
|
||||
if (mSize != oldSize) {
|
||||
invalidRegionSafe = intRect;
|
||||
} else {
|
||||
invalidRegionSafe.And(aInvalidRegion, intRect);
|
||||
}
|
||||
|
||||
nsIntRect invalidRect = invalidRegionSafe.GetBounds();
|
||||
mInvalidRect = IntRect(invalidRect.x, invalidRect.y, invalidRect.width, invalidRect.height);
|
||||
mInvalidRegion = invalidRegionSafe;
|
||||
|
Loading…
x
Reference in New Issue
Block a user