From 1a04a042b2d47618caaf9f88e9fdecdd3154039c Mon Sep 17 00:00:00 2001 From: Bas Schouten Date: Thu, 15 May 2014 00:31:23 +0200 Subject: [PATCH] Bug 1009600: Use a content DT for reference in BasicCompositor. r=nical --- gfx/layers/basic/BasicCompositor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/layers/basic/BasicCompositor.cpp b/gfx/layers/basic/BasicCompositor.cpp index b64abcaa5f7b..526271ed4c09 100644 --- a/gfx/layers/basic/BasicCompositor.cpp +++ b/gfx/layers/basic/BasicCompositor.cpp @@ -412,7 +412,7 @@ BasicCompositor::BeginFrame(const nsIntRegion& aInvalidRegion, if (mCopyTarget) { // If we have a copy target, then we don't have a widget-provided mDrawTarget (currently). Create a dummy // placeholder so that CreateRenderTarget() works. - mDrawTarget = gfxPlatform::GetPlatform()->CreateOffscreenCanvasDrawTarget(IntSize(1,1), SurfaceFormat::B8G8R8A8); + mDrawTarget = gfxPlatform::GetPlatform()->CreateOffscreenContentDrawTarget(IntSize(1,1), SurfaceFormat::B8G8R8A8); } else { mDrawTarget = mWidget->StartRemoteDrawing(); }