Bug 1151713 - Initialize the layers prefs earlier. r=jrmuizel, a=jocheng
authornsilva@mozilla.com
Thu, 16 Apr 2015 11:55:36 -0400
changeset 222112 e52807dee1017d94504f17fb0a185b2906bc601e
parent 222111 eb6e7d9d336a9a354158b4c43147361fe5a7fe13
child 222113 d23e117039f38cab9ce2a089dd0b04be2ef54f91
push id526
push userryanvm@gmail.com
push dateSat, 30 May 2015 17:14:03 +0000
treeherdermozilla-b2g34_v2_1@e52807dee101 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjrmuizel, jocheng
bugs1151713
milestone34.0
Bug 1151713 - Initialize the layers prefs earlier. r=jrmuizel, a=jocheng
gfx/thebes/gfxPlatform.cpp
--- a/gfx/thebes/gfxPlatform.cpp
+++ b/gfx/thebes/gfxPlatform.cpp
@@ -126,16 +126,18 @@ static int gCMSIntent = QCMS_INTENT_DEFA
 
 
 static void ShutdownCMS();
 
 #include "mozilla/gfx/2D.h"
 #include "mozilla/gfx/SourceSurfaceCairo.h"
 using namespace mozilla::gfx;
 
+void InitLayersAccelerationPrefs();
+
 /* Class to listen for pref changes so that chrome code can dynamically
    force sRGB as an output profile. See Bug #452125. */
 class SRGBOverrideObserver MOZ_FINAL : public nsIObserver,
                                        public nsSupportsWeakReference
 {
     ~SRGBOverrideObserver() {}
 public:
     NS_DECL_ISUPPORTS
@@ -359,16 +361,17 @@ gfxPlatform::Init()
 #else
     #error "No gfxPlatform implementation available"
 #endif
 
 #ifdef DEBUG
     mozilla::gl::GLContext::StaticInit();
 #endif
 
+    InitLayersAccelerationPrefs();
     InitLayersIPC();
 
     nsresult rv;
 
 #if defined(XP_MACOSX) || defined(XP_WIN) || defined(ANDROID) // temporary, until this is implemented on others
     rv = gfxPlatformFontList::Init();
     if (NS_FAILED(rv)) {
         NS_RUNTIMEABORT("Could not initialize gfxPlatformFontList");