mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
Bug 885573 - Stop forcing layers acceleration when we have OMTC enabled. r=nrc
This commit is contained in:
parent
8d2a438d68
commit
1cff1e2f07
@ -1825,8 +1825,7 @@ void InitLayersAccelerationPrefs()
|
||||
sPrefLayersOffMainThreadCompositionEnabled = Preferences::GetBool("layers.offmainthreadcomposition.enabled", false);
|
||||
sPrefLayersOffMainThreadCompositionTestingEnabled = Preferences::GetBool("layers.offmainthreadcomposition.testing.enabled", false);
|
||||
sPrefLayersOffMainThreadCompositionForceEnabled = Preferences::GetBool("layers.offmainthreadcomposition.force-enabled", false);
|
||||
sPrefLayersAccelerationForceEnabled = Preferences::GetBool("layers.acceleration.force-enabled", false) ||
|
||||
Preferences::GetBool("browser.tabs.remote", false);
|
||||
sPrefLayersAccelerationForceEnabled = Preferences::GetBool("layers.acceleration.force-enabled", false);
|
||||
sPrefLayersAccelerationDisabled = Preferences::GetBool("layers.acceleration.disabled", false);
|
||||
sPrefLayersPreferOpenGL = Preferences::GetBool("layers.prefer-opengl", false);
|
||||
sPrefLayersPreferD3D9 = Preferences::GetBool("layers.prefer-d3d9", false);
|
||||
|
@ -448,7 +448,7 @@ public:
|
||||
NS_IMETHOD DispatchEvent(nsGUIEvent* event, nsEventStatus & aStatus);
|
||||
|
||||
virtual bool ComputeShouldAccelerate(bool aDefault);
|
||||
virtual bool ShouldUseOffMainThreadCompositing();
|
||||
virtual bool ShouldUseOffMainThreadCompositing() MOZ_OVERRIDE;
|
||||
|
||||
NS_IMETHOD SetCursor(nsCursor aCursor);
|
||||
NS_IMETHOD SetCursor(imgIContainer* aCursor, uint32_t aHotspotX, uint32_t aHotspotY);
|
||||
|
@ -1421,7 +1421,8 @@ nsChildView::ShouldUseOffMainThreadCompositing()
|
||||
// OMTC doesn't work with Basic Layers on OS X right now. Once it works, we'll
|
||||
// still want to disable it for certain kinds of windows (e.g. popups).
|
||||
return nsBaseWidget::ShouldUseOffMainThreadCompositing() &&
|
||||
ComputeShouldAccelerate(mUseLayersAcceleration);
|
||||
(ComputeShouldAccelerate(mUseLayersAcceleration) ||
|
||||
Preferences::GetBool("layers.offmainthreadcomposition.prefer-basic", false));
|
||||
}
|
||||
|
||||
inline uint16_t COLOR8TOCOLOR16(uint8_t color8)
|
||||
|
@ -910,15 +910,11 @@ void nsBaseWidget::CreateCompositor()
|
||||
mozilla::layers::LayersBackend
|
||||
nsBaseWidget::GetPreferredCompositorBackend()
|
||||
{
|
||||
// We need a separate preference here (instead of using mUseLayersAcceleration)
|
||||
// because we force enable accelerated layers with e10s. Once the BasicCompositor
|
||||
// is stable enough to be used for Ripc/Cipc, then we can remove that and this
|
||||
// pref.
|
||||
if (Preferences::GetBool("layers.offmainthreadcomposition.prefer-basic", false)) {
|
||||
return mozilla::layers::LAYERS_BASIC;
|
||||
if (mUseLayersAcceleration) {
|
||||
return mozilla::layers::LAYERS_OPENGL;
|
||||
}
|
||||
|
||||
return mozilla::layers::LAYERS_OPENGL;
|
||||
return mozilla::layers::LAYERS_BASIC;
|
||||
}
|
||||
|
||||
void nsBaseWidget::CreateCompositor(int aWidth, int aHeight)
|
||||
|
Loading…
Reference in New Issue
Block a user