зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1153570 - Remove AutoUseBasicLayerManager, which has been unused since 78b90e6c491b (bug 676241 part 3). r=mstange
This commit is contained in:
Родитель
6d96efcfac
Коммит
477258dd0a
|
@ -130,7 +130,6 @@ nsBaseWidget::nsBaseWidget()
|
|||
, mBorderStyle(eBorderStyle_none)
|
||||
, mUseLayersAcceleration(false)
|
||||
, mForceLayersAcceleration(false)
|
||||
, mTemporarilyUseBasicLayerManager(false)
|
||||
, mUseAttachedEvents(false)
|
||||
, mBounds(0,0,0,0)
|
||||
, mOriginalBounds(nullptr)
|
||||
|
@ -823,20 +822,6 @@ nsBaseWidget::AutoLayerManagerSetup::~AutoLayerManagerSetup()
|
|||
}
|
||||
}
|
||||
|
||||
nsBaseWidget::AutoUseBasicLayerManager::AutoUseBasicLayerManager(nsBaseWidget* aWidget)
|
||||
: mWidget(aWidget)
|
||||
{
|
||||
mPreviousTemporarilyUseBasicLayerManager =
|
||||
mWidget->mTemporarilyUseBasicLayerManager;
|
||||
mWidget->mTemporarilyUseBasicLayerManager = true;
|
||||
}
|
||||
|
||||
nsBaseWidget::AutoUseBasicLayerManager::~AutoUseBasicLayerManager()
|
||||
{
|
||||
mWidget->mTemporarilyUseBasicLayerManager =
|
||||
mPreviousTemporarilyUseBasicLayerManager;
|
||||
}
|
||||
|
||||
bool
|
||||
nsBaseWidget::ComputeShouldAccelerate(bool aDefault)
|
||||
{
|
||||
|
@ -1216,15 +1201,10 @@ LayerManager* nsBaseWidget::GetLayerManager(PLayerTransactionChild* aShadowManag
|
|||
mLayerManager = CreateBasicLayerManager();
|
||||
}
|
||||
}
|
||||
if (mTemporarilyUseBasicLayerManager && !mBasicLayerManager) {
|
||||
mBasicLayerManager = CreateBasicLayerManager();
|
||||
}
|
||||
LayerManager* usedLayerManager = mTemporarilyUseBasicLayerManager ?
|
||||
mBasicLayerManager : mLayerManager;
|
||||
if (aAllowRetaining) {
|
||||
*aAllowRetaining = (usedLayerManager == mLayerManager);
|
||||
*aAllowRetaining = true;
|
||||
}
|
||||
return usedLayerManager;
|
||||
return mLayerManager;
|
||||
}
|
||||
|
||||
LayerManager* nsBaseWidget::CreateBasicLayerManager()
|
||||
|
|
|
@ -309,16 +309,6 @@ public:
|
|||
};
|
||||
friend class AutoLayerManagerSetup;
|
||||
|
||||
class AutoUseBasicLayerManager {
|
||||
public:
|
||||
explicit AutoUseBasicLayerManager(nsBaseWidget* aWidget);
|
||||
~AutoUseBasicLayerManager();
|
||||
private:
|
||||
nsBaseWidget* mWidget;
|
||||
bool mPreviousTemporarilyUseBasicLayerManager;
|
||||
};
|
||||
friend class AutoUseBasicLayerManager;
|
||||
|
||||
virtual bool ShouldUseOffMainThreadCompositing();
|
||||
|
||||
static nsIRollupListener* GetActiveRollupListener();
|
||||
|
@ -479,7 +469,6 @@ protected:
|
|||
nsIWidgetListener* mWidgetListener;
|
||||
nsIWidgetListener* mAttachedWidgetListener;
|
||||
nsRefPtr<LayerManager> mLayerManager;
|
||||
nsRefPtr<LayerManager> mBasicLayerManager;
|
||||
nsRefPtr<CompositorChild> mCompositorChild;
|
||||
nsRefPtr<CompositorParent> mCompositorParent;
|
||||
nsRefPtr<mozilla::CompositorVsyncDispatcher> mCompositorVsyncDispatcher;
|
||||
|
@ -493,7 +482,6 @@ protected:
|
|||
nsBorderStyle mBorderStyle;
|
||||
bool mUseLayersAcceleration;
|
||||
bool mForceLayersAcceleration;
|
||||
bool mTemporarilyUseBasicLayerManager;
|
||||
// Windows with out-of-process tabs always require OMTC. This flag designates
|
||||
// such windows.
|
||||
bool mRequireOffMainThreadCompositing;
|
||||
|
|
Загрузка…
Ссылка в новой задаче