Bug 1009600: Use a content DT for reference in BasicCompositor. r=nical

This commit is contained in:
Bas Schouten 2014-05-15 00:31:23 +02:00
Родитель 01f63d0b72
Коммит 1a04a042b2
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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();
}