Disable accelerated compositing to fix everything.

This commit is contained in:
Cheng Zhao 2013-12-13 00:57:08 +08:00
parent 7708e7a8c4
commit 2413eebd7b
3 changed files with 8 additions and 5 deletions

View file

@ -46,9 +46,14 @@ void AtomMainDelegate::PreSandboxStartup() {
#endif #endif
InitializeResourceBundle(); InitializeResourceBundle();
// Disable renderer sandbox for most of node's functions.
CommandLine* command_line = CommandLine::ForCurrentProcess(); CommandLine* command_line = CommandLine::ForCurrentProcess();
// Disable renderer sandbox for most of node's functions.
command_line->AppendSwitch(switches::kNoSandbox); command_line->AppendSwitch(switches::kNoSandbox);
// Disable accelerated compositing since it caused a lot of troubles (black
// devtools, screen flashes) and needed lots of effort to make it right.
command_line->AppendSwitch(switches::kDisableAcceleratedCompositing);
} }
void AtomMainDelegate::InitializeResourceBundle() { void AtomMainDelegate::InitializeResourceBundle() {

View file

@ -7,12 +7,10 @@
#import <Cocoa/Cocoa.h> #import <Cocoa/Cocoa.h>
#import "ui/base/cocoa/underlay_opengl_hosting_window.h"
// Override NSWindow to access unhandled keyboard events (for command // Override NSWindow to access unhandled keyboard events (for command
// processing); subclassing NSWindow is the only method to do // processing); subclassing NSWindow is the only method to do
// this. // this.
@interface AtomEventProcessingWindow : UnderlayOpenGLHostingWindow { @interface AtomEventProcessingWindow : NSWindow {
@private @private
BOOL redispatchingEvent_; BOOL redispatchingEvent_;
BOOL eventHandled_; BOOL eventHandled_;

2
vendor/brightray vendored

@ -1 +1 @@
Subproject commit 4ca4ef93c54c30001e0cac1da8a681c5af4f3cbb Subproject commit 927194b05eafd56df6633d225919a65d2e2812ee