зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1356317: Enable off-main-thread compositing on Windows when possible. r=jimm
This commit is contained in:
Родитель
0c56cc9a61
Коммит
e7bc7d572d
|
@ -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; }
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче