зеркало из 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,12 +53,15 @@ FrameworkView::Render(const nsIntRegion& aInvalidRegion)
|
|||
}
|
||||
}
|
||||
|
||||
// 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) {
|
||||
NS_WARNING("transparency modes other than eTransparencyOpaque unsupported, can't draw.");
|
||||
|
|
Загрузка…
Ссылка в новой задаче