зеркало из https://github.com/mozilla/gecko-dev.git
Bug 901025 - Allow GDI rendering mode when OMTC is enabled. r=jimm
This commit is contained in:
Родитель
4e460d2b5b
Коммит
a880c542f1
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче