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

Unified Diff: content/app/mac/mac_init.mm

Issue 903943002: Mac: Make content shell work with remote CoreAnimation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use NS-APIs Created 5 years, 7 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 | « content/app/mac/mac_init.h ('k') | content/content_app.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/app/mac/mac_init.mm
diff --git a/content/app/mac/mac_init.mm b/content/app/mac/mac_init.mm
new file mode 100644
index 0000000000000000000000000000000000000000..042663c76743330e0ee20cd3c0108ecba1e7dd56
--- /dev/null
+++ b/content/app/mac/mac_init.mm
@@ -0,0 +1,25 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "content/app/mac/mac_init.h"
+
+#include <Cocoa/Cocoa.h>
+
+#include "base/mac/mac_util.h"
+
+namespace content {
+
+void InitializeMac() {
+ [[NSUserDefaults standardUserDefaults] registerDefaults:@{
+ @"NSTreatUnknownArgumentsAsOpen": @"NO",
+ // CoreAnimation has poor performance and CoreAnimation and
+ // non-CoreAnimation exhibit window flickering when layers are not hosted
+ // in the window server, which is the default when not not using the
+ // 10.9 SDK.
+ // TODO: Remove this when we build with the 10.9 SDK.
+ @"NSWindowHostsLayersInWindowServer": @(base::mac::IsOSMavericksOrLater())
+ }];
+}
+
+} // namespace content
« no previous file with comments | « content/app/mac/mac_init.h ('k') | content/content_app.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698