Bug 594876 - Accelerate layers by default for nightlies on Linux. r=nical
MozReview-Commit-ID: FtGqib9SIFD
--- a/gfx/thebes/gfxPlatformGtk.h
+++ b/gfx/thebes/gfxPlatformGtk.h
@@ -127,16 +127,25 @@ public:
// maximum number of fonts to substitute for a generic
uint32_t MaxGenericSubstitions();
bool SupportsPluginDirectBitmapDrawing() override {
return true;
}
+ bool AccelerateLayersByDefault() override {
+#ifdef NIGHTLY_BUILD
+ // Only enable the GL compositor on Nightly for now until we have
+ // sufficient data for blocklisting.
+ return true;
+#endif
+ return false;
+ }
+
#ifdef GL_PROVIDER_GLX
already_AddRefed<mozilla::gfx::VsyncSource> CreateHardwareVsyncSource() override;
#endif
#ifdef MOZ_X11
Display* GetCompositorDisplay() {
return mCompositorDisplay;
}