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

Unified Diff: chrome/browser/ui/cocoa/tab_contents/tab_contents_controller.mm

Issue 469003006: Remove --disable-core-animation flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@erikchen_patch
Patch Set: Created 6 years, 4 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
Index: chrome/browser/ui/cocoa/tab_contents/tab_contents_controller.mm
diff --git a/chrome/browser/ui/cocoa/tab_contents/tab_contents_controller.mm b/chrome/browser/ui/cocoa/tab_contents/tab_contents_controller.mm
index 2e54b499dbe186ff5b4157dcf64eab44199aa987..44f53c4ebaeed115313f72164b085056a8ca5f33 100644
--- a/chrome/browser/ui/cocoa/tab_contents/tab_contents_controller.mm
+++ b/chrome/browser/ui/cocoa/tab_contents/tab_contents_controller.mm
@@ -6,7 +6,6 @@
#include <utility>
-#include "base/command_line.h"
#include "base/mac/scoped_cftyperef.h"
#include "base/mac/scoped_nsobject.h"
#include "chrome/browser/devtools/devtools_window.h"
@@ -18,7 +17,6 @@
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_contents_observer.h"
#include "ui/base/cocoa/animation_utils.h"
-#include "ui/base/ui_base_switches.h"
#include "ui/gfx/geometry/rect.h"
using content::WebContents;
@@ -86,16 +84,11 @@ class FullscreenObserver : public WebContentsObserver {
- (id)initWithDelegate:(TabContentsController*)delegate {
if ((self = [super initWithFrame:NSZeroRect])) {
delegate_ = delegate;
- if (!CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kDisableCoreAnimation)) {
- // TODO(ccameron): Remove the -drawRect: method once the
- // kDisableCoreAnimation switch is removed.
- ScopedCAActionDisabler disabler;
- base::scoped_nsobject<CALayer> layer([[CALayer alloc] init]);
- [layer setBackgroundColor:CGColorGetConstantColor(kCGColorWhite)];
- [self setLayer:layer];
- [self setWantsLayer:YES];
- }
+ ScopedCAActionDisabler disabler;
+ base::scoped_nsobject<CALayer> layer([[CALayer alloc] init]);
+ [layer setBackgroundColor:CGColorGetConstantColor(kCGColorWhite)];
+ [self setLayer:layer];
+ [self setWantsLayer:YES];
}
return self;
}

Powered by Google App Engine
This is Rietveld 408576698