OLD | NEW |
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/files/file.h" | 9 #include "base/files/file.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 command_line.AppendSwitch(switches::kDisableThreadedCompositing); | 163 command_line.AppendSwitch(switches::kDisableThreadedCompositing); |
164 command_line.AppendSwitch(cc::switches::kDisableThreadedAnimation); | 164 command_line.AppendSwitch(cc::switches::kDisableThreadedAnimation); |
165 } | 165 } |
166 | 166 |
167 command_line.AppendSwitch(switches::kEnableInbandTextTracks); | 167 command_line.AppendSwitch(switches::kEnableInbandTextTracks); |
168 command_line.AppendSwitch(switches::kMuteAudio); | 168 command_line.AppendSwitch(switches::kMuteAudio); |
169 | 169 |
170 #if defined(USE_AURA) | 170 #if defined(USE_AURA) |
171 // TODO: crbug.com/311404 Make layout tests work w/ delegated renderer. | 171 // TODO: crbug.com/311404 Make layout tests work w/ delegated renderer. |
172 command_line.AppendSwitch(switches::kDisableDelegatedRenderer); | 172 command_line.AppendSwitch(switches::kDisableDelegatedRenderer); |
| 173 command_line.AppendSwitch(cc::switches::kCompositeToMailbox); |
173 #endif | 174 #endif |
174 | 175 |
175 command_line.AppendSwitch(switches::kEnableFileCookies); | 176 command_line.AppendSwitch(switches::kEnableFileCookies); |
176 | 177 |
177 // Unless/until WebM files are added to the media layout tests, we need to | 178 // Unless/until WebM files are added to the media layout tests, we need to |
178 // avoid removing MP4/H264/AAC so that layout tests can run on Android. | 179 // avoid removing MP4/H264/AAC so that layout tests can run on Android. |
179 #if !defined(OS_ANDROID) | 180 #if !defined(OS_ANDROID) |
180 net::RemoveProprietaryMediaTypesAndCodecsForTests(); | 181 net::RemoveProprietaryMediaTypesAndCodecsForTests(); |
181 #endif | 182 #endif |
182 | 183 |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 browser_client_.reset(new ShellContentBrowserClient); | 292 browser_client_.reset(new ShellContentBrowserClient); |
292 return browser_client_.get(); | 293 return browser_client_.get(); |
293 } | 294 } |
294 | 295 |
295 ContentRendererClient* ShellMainDelegate::CreateContentRendererClient() { | 296 ContentRendererClient* ShellMainDelegate::CreateContentRendererClient() { |
296 renderer_client_.reset(new ShellContentRendererClient); | 297 renderer_client_.reset(new ShellContentRendererClient); |
297 return renderer_client_.get(); | 298 return renderer_client_.get(); |
298 } | 299 } |
299 | 300 |
300 } // namespace content | 301 } // namespace content |
OLD | NEW |