Bug 1356317: Enable off-main-thread compositing on Windows when possible. r=jimm

This commit is contained in:
Stephen A Pohl 2017-06-29 14:37:56 -07:00
Родитель 0c56cc9a61
Коммит e7bc7d572d
2 изменённых файлов: 0 добавлений и 14 удалений

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

@ -7170,19 +7170,6 @@ nsWindow::IsPopup()
return mWindowType == eWindowType_popup;
}
bool
nsWindow::ShouldUseOffMainThreadCompositing()
{
// We don't currently support using an accelerated layer manager with
// transparent windows so don't even try. I'm also not sure if we even
// want to support this case. See bug 593471
if (!(HasRemoteContent() && gIsPopupCompositingEnabled) && mTransparencyMode == eTransparencyTransparent) {
return false;
}
return nsBaseWidget::ShouldUseOffMainThreadCompositing();
}
void
nsWindow::WindowUsesOMTC()
{

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

@ -301,7 +301,6 @@ public:
bool const DestroyCalled() { return mDestroyCalled; }
bool IsPopup();
virtual bool ShouldUseOffMainThreadCompositing() override;
const IMEContext& DefaultIMC() const { return mDefaultIMC; }