Bug 687864 - Part 2: Add offline renderer awareness for Mac OGL in plugins; r=jmuizelaar
authorBenoit Girard <b56girard@gmail.com>
Wed, 21 Sep 2011 15:20:52 -0400
changeset 78890 2c5bbb176d01195be87c7445f8cb1d91d967efbb
parent 78889 5c52fd250a41fe2ee56fb64218e2b153c2e652d2
child 78891 020f14584a2aad2492230d21296ffbc8c5a9f257
push id78
push userclegnitto@mozilla.com
push dateFri, 16 Dec 2011 17:32:24 +0000
treeherdermozilla-release@79d24e644fdd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjmuizelaar
bugs687864
milestone9.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 687864 - Part 2: Add offline renderer awareness for Mac OGL in plugins; r=jmuizelaar
gfx/thebes/nsCoreAnimationSupport.mm
ipc/app/macbuild/Contents/Info.plist.in
--- a/gfx/thebes/nsCoreAnimationSupport.mm
+++ b/gfx/thebes/nsCoreAnimationSupport.mm
@@ -446,19 +446,18 @@ nsresult nsCARenderer::SetupRenderer(voi
       aHeight == mUnsupportedHeight) {
     return NS_ERROR_FAILURE;
   }
 
   CALayer* layer = (CALayer*)aCALayer;
   CARenderer* caRenderer = nsnull;
 
   CGLPixelFormatAttribute attributes[] = {
-    kCGLPFANoRecovery,
     kCGLPFAAccelerated,
-    kCGLPFAPBuffer,
+    kCGLPFAAllowOfflineRenderers,
     kCGLPFADepthSize, (CGLPixelFormatAttribute)24,
     (CGLPixelFormatAttribute)0
   };
 
   if (!mIOSurface) {
     CGLError result = ::CGLCreatePBuffer(aWidth, aHeight,
                          GL_TEXTURE_2D, GL_RGBA, 0, &mPixelBuffer);
     if (result != kCGLNoError) {
--- a/ipc/app/macbuild/Contents/Info.plist.in
+++ b/ipc/app/macbuild/Contents/Info.plist.in
@@ -22,10 +22,12 @@
 	<dict>
 		<key>i386</key>
 		<string>10.5.0</string>
 		<key>x86_64</key>
 		<string>10.6.0</string>
 	</dict>
 	<key>LSUIElement</key>
 	<string>1</string>
+  <key>NSSupportsAutomaticGraphicsSwitching</key>
+  <true/>
 </dict>
 </plist>