Index: chrome/browser/ui/cocoa/browser_window_controller_private.mm |
diff --git a/chrome/browser/ui/cocoa/browser_window_controller_private.mm b/chrome/browser/ui/cocoa/browser_window_controller_private.mm |
index 1ed775b94c712b877308ada24d4dcebdcec701d6..b82ea107db20f1145862bfe8b7257b4b8d9452e0 100644 |
--- a/chrome/browser/ui/cocoa/browser_window_controller_private.mm |
+++ b/chrome/browser/ui/cocoa/browser_window_controller_private.mm |
@@ -1072,4 +1072,16 @@ willPositionSheet:(NSWindow*)sheet |
return [super shouldConstrainFrameRect]; |
} |
+- (BOOL)wantsRootViewToBeLayerBacked { |
+ // This class always layer-backs the contentView of the window. If Chrome |
+ // were linked against OSX 10.9, this would also cause the root view to be |
+ // layer backed. Since Chrome is linked against OSX 10.6, the root view by |
+ // default is not layer backed. |
+ |
+ // This class is going to have a custom AppKit fullscreen animation, which |
+ // requires that the root view is layer backed. To be safe, this class will |
+ // only layer-back the root view on OSX 10.9+. |
+ return base::mac::IsOSMavericksOrLater(); |
+} |
+ |
@end // @implementation BrowserWindowController(Private) |