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

Side by Side Diff: trunk/src/content/shell/app/shell_main_delegate.cc

Issue 388973002: Revert 282672 "Revert 281692 "Mac: Enable delegated renderer by ..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « trunk/src/content/browser/gpu/compositor_util_browsertest.cc ('k') | 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/shell/app/shell_main_delegate.h" 5 #include "content/shell/app/shell_main_delegate.h"
6 6
7 #include "base/base_switches.h" 7 #include "base/base_switches.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/cpu.h" 9 #include "base/cpu.h"
10 #include "base/files/file.h" 10 #include "base/files/file.h"
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 } 155 }
156 156
157 if (!command_line.HasSwitch(switches::kEnableThreadedCompositing)) { 157 if (!command_line.HasSwitch(switches::kEnableThreadedCompositing)) {
158 command_line.AppendSwitch(switches::kDisableThreadedCompositing); 158 command_line.AppendSwitch(switches::kDisableThreadedCompositing);
159 command_line.AppendSwitch(cc::switches::kDisableThreadedAnimation); 159 command_line.AppendSwitch(cc::switches::kDisableThreadedAnimation);
160 } 160 }
161 161
162 command_line.AppendSwitch(switches::kEnableInbandTextTracks); 162 command_line.AppendSwitch(switches::kEnableInbandTextTracks);
163 command_line.AppendSwitch(switches::kMuteAudio); 163 command_line.AppendSwitch(switches::kMuteAudio);
164 164
165 #if defined(USE_AURA) || defined(OS_ANDROID) 165 #if defined(USE_AURA) || defined(OS_ANDROID) || defined(OS_MACOSX)
166 // TODO: crbug.com/311404 Make layout tests work w/ delegated renderer. 166 // TODO: crbug.com/311404 Make layout tests work w/ delegated renderer.
167 command_line.AppendSwitch(switches::kDisableDelegatedRenderer); 167 command_line.AppendSwitch(switches::kDisableDelegatedRenderer);
168 command_line.AppendSwitch(cc::switches::kCompositeToMailbox); 168 command_line.AppendSwitch(cc::switches::kCompositeToMailbox);
169 #endif 169 #endif
170 170
171 command_line.AppendSwitch(switches::kEnableFileCookies); 171 command_line.AppendSwitch(switches::kEnableFileCookies);
172 172
173 command_line.AppendSwitch(switches::kEnablePreciseMemoryInfo); 173 command_line.AppendSwitch(switches::kEnablePreciseMemoryInfo);
174 174
175 // Unless/until WebM files are added to the media layout tests, we need to 175 // Unless/until WebM files are added to the media layout tests, we need to
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 browser_client_.reset(new ShellContentBrowserClient); 295 browser_client_.reset(new ShellContentBrowserClient);
296 return browser_client_.get(); 296 return browser_client_.get();
297 } 297 }
298 298
299 ContentRendererClient* ShellMainDelegate::CreateContentRendererClient() { 299 ContentRendererClient* ShellMainDelegate::CreateContentRendererClient() {
300 renderer_client_.reset(new ShellContentRendererClient); 300 renderer_client_.reset(new ShellContentRendererClient);
301 return renderer_client_.get(); 301 return renderer_client_.get();
302 } 302 }
303 303
304 } // namespace content 304 } // namespace content
OLDNEW
« no previous file with comments | « trunk/src/content/browser/gpu/compositor_util_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698