Bug 901025 - Allow GDI rendering mode when OMTC is enabled. r=jimm

This commit is contained in:
Brian R. Bondy 2013-08-05 22:00:48 -04:00
Родитель 4e460d2b5b
Коммит a880c542f1
1 изменённых файлов: 8 добавлений и 5 удалений

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

@ -53,11 +53,14 @@ FrameworkView::Render(const nsIntRegion& aInvalidRegion)
}
}
if (IsRenderMode(gfxWindowsPlatform::RENDER_GDI) ||
IsRenderMode(gfxWindowsPlatform::RENDER_IMAGE_STRETCH32) ||
IsRenderMode(gfxWindowsPlatform::RENDER_IMAGE_STRETCH24)) {
NS_WARNING("Unsupported render mode, can't draw. Needs to be D2D.");
return false;
// If OMTC is not in use, then we only support D2D rendering
if (!mWidget->ShouldUseOffMainThreadCompositing()) {
if (IsRenderMode(gfxWindowsPlatform::RENDER_GDI) ||
IsRenderMode(gfxWindowsPlatform::RENDER_IMAGE_STRETCH32) ||
IsRenderMode(gfxWindowsPlatform::RENDER_IMAGE_STRETCH24)) {
NS_WARNING("Unsupported render mode, can't draw. Needs to be D2D.");
return false;
}
}
if (mWidget->GetTransparencyMode() != eTransparencyOpaque) {