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

Side by Side Diff: content/app/mac/mac_init.mm

Issue 2471523003: Remove NSWindowHostsLayersInWindowServer workaround. (Closed)
Patch Set: Created 4 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/app/mac/mac_init.h" 5 #include "content/app/mac/mac_init.h"
6 6
7 #import <Cocoa/Cocoa.h> 7 #import <Cocoa/Cocoa.h>
8 8
9 namespace content { 9 namespace content {
10 10
11 void InitializeMac() { 11 void InitializeMac() {
12 [[NSUserDefaults standardUserDefaults] registerDefaults:@{ 12 [[NSUserDefaults standardUserDefaults] registerDefaults:@{
13 // Exceptions routed to -[NSApplication reportException:] should crash 13 // Exceptions routed to -[NSApplication reportException:] should crash
14 // immediately, as opposed being swallowed or presenting UI that gives the 14 // immediately, as opposed being swallowed or presenting UI that gives the
15 // user a choice in the matter. 15 // user a choice in the matter.
16 @"NSApplicationCrashOnExceptions": @YES, 16 @"NSApplicationCrashOnExceptions": @YES,
17 17
18 // Prevent Cocoa from turning command-line arguments into -[NSApplication 18 // Prevent Cocoa from turning command-line arguments into -[NSApplication
19 // application:openFile:], because they are handled directly. @"NO" looks 19 // application:openFile:], because they are handled directly. @"NO" looks
20 // like a mistake, but the value really is supposed to be a string. 20 // like a mistake, but the value really is supposed to be a string.
21 @"NSTreatUnknownArgumentsAsOpen": @"NO", 21 @"NSTreatUnknownArgumentsAsOpen": @"NO",
22
23 // CoreAnimation has poor performance and CoreAnimation and
24 // non-CoreAnimation exhibit window flickering when layers are not hosted
25 // in the window server, which is the default when not not using the
26 // 10.9 SDK.
27 // TODO: Remove this when we build with the 10.9 SDK.
28 @"NSWindowHostsLayersInWindowServer": @YES
29 }]; 22 }];
30 } 23 }
31 24
32 } // namespace content 25 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698