зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1009600: Use a content DT for reference in BasicCompositor. r=nical
This commit is contained in:
Родитель
01f63d0b72
Коммит
1a04a042b2
|
@ -412,7 +412,7 @@ BasicCompositor::BeginFrame(const nsIntRegion& aInvalidRegion,
|
||||||
if (mCopyTarget) {
|
if (mCopyTarget) {
|
||||||
// If we have a copy target, then we don't have a widget-provided mDrawTarget (currently). Create a dummy
|
// If we have a copy target, then we don't have a widget-provided mDrawTarget (currently). Create a dummy
|
||||||
// placeholder so that CreateRenderTarget() works.
|
// placeholder so that CreateRenderTarget() works.
|
||||||
mDrawTarget = gfxPlatform::GetPlatform()->CreateOffscreenCanvasDrawTarget(IntSize(1,1), SurfaceFormat::B8G8R8A8);
|
mDrawTarget = gfxPlatform::GetPlatform()->CreateOffscreenContentDrawTarget(IntSize(1,1), SurfaceFormat::B8G8R8A8);
|
||||||
} else {
|
} else {
|
||||||
mDrawTarget = mWidget->StartRemoteDrawing();
|
mDrawTarget = mWidget->StartRemoteDrawing();
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче