mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-26 23:23:33 +00:00
Bug 1008573 - Simplify D3D10 invalid region before we clear the surface. r=Bas
This commit is contained in:
parent
3f93856e12
commit
e00ee174fb
@ -404,6 +404,8 @@ ThebesLayerD3D10::DrawRegion(nsIntRegion &aRegion, SurfaceMode aMode)
|
||||
return;
|
||||
}
|
||||
|
||||
aRegion.SimplifyOutwardByArea(100 * 100);
|
||||
|
||||
nsRefPtr<gfxASurface> destinationSurface;
|
||||
|
||||
if (aMode == SurfaceMode::SURFACE_COMPONENT_ALPHA) {
|
||||
@ -412,8 +414,6 @@ ThebesLayerD3D10::DrawRegion(nsIntRegion &aRegion, SurfaceMode aMode)
|
||||
destinationSurface = mD2DSurface;
|
||||
}
|
||||
|
||||
aRegion.SimplifyOutwardByArea(100 * 100);
|
||||
|
||||
MOZ_ASSERT(mDrawTarget);
|
||||
nsRefPtr<gfxContext> context = new gfxContext(mDrawTarget);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user