Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7705)

Unified Diff: chrome/browser/ui/cocoa/presentation_mode_controller.mm

Issue 184433005: Give the browser window's content view a CALayers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use scoped object Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/cocoa/fast_resize_view.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/presentation_mode_controller.mm
diff --git a/chrome/browser/ui/cocoa/presentation_mode_controller.mm b/chrome/browser/ui/cocoa/presentation_mode_controller.mm
index ec9f98190f3e8f8ea6a58b837257fc15f55399ca..e114467a3050d7c9a9f260ffb632e13a7afb5860 100644
--- a/chrome/browser/ui/cocoa/presentation_mode_controller.mm
+++ b/chrome/browser/ui/cocoa/presentation_mode_controller.mm
@@ -199,12 +199,6 @@ const CGFloat kFloatingBarVerticalOffset = 22;
NSNotificationCenter* nc = [NSNotificationCenter defaultCenter];
NSWindow* window = [browserController_ window];
- // When in presentation mode, the window's background will need to appear
- // above the window contents. For this to happen, the window will need its
- // own layer. This comes with a performance penalty when not fullscreen, so
- // do not enable this by default.
- [[window contentView] cr_setWantsLayer:YES];
-
// Disable these notifications on Lion as they cause crashes.
// TODO(rohitrao): Figure out what happens if a fullscreen window changes
// monitors on Lion.
@@ -240,10 +234,6 @@ const CGFloat kFloatingBarVerticalOffset = 22;
DCHECK(inPresentationMode_);
inPresentationMode_ = NO;
- // Remove the layer that was created.
- NSWindow* window = [browserController_ window];
- [[window contentView] cr_setWantsLayer:NO];
-
[self cleanup];
}
« no previous file with comments | « chrome/browser/ui/cocoa/fast_resize_view.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698