From e00ee174fbedb5570a6b97122dd738487d25411a Mon Sep 17 00:00:00 2001 From: Matt Woodrow Date: Tue, 13 May 2014 11:46:54 +1200 Subject: [PATCH] Bug 1008573 - Simplify D3D10 invalid region before we clear the surface. r=Bas --- gfx/layers/d3d10/ThebesLayerD3D10.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gfx/layers/d3d10/ThebesLayerD3D10.cpp b/gfx/layers/d3d10/ThebesLayerD3D10.cpp index ebd296e15642..091751fce582 100644 --- a/gfx/layers/d3d10/ThebesLayerD3D10.cpp +++ b/gfx/layers/d3d10/ThebesLayerD3D10.cpp @@ -404,6 +404,8 @@ ThebesLayerD3D10::DrawRegion(nsIntRegion &aRegion, SurfaceMode aMode) return; } + aRegion.SimplifyOutwardByArea(100 * 100); + nsRefPtr 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 context = new gfxContext(mDrawTarget);