| 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/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 #if defined(OS_ANDROID) | 134 #if defined(OS_ANDROID) |
| 135 command_line.AppendSwitch( | 135 command_line.AppendSwitch( |
| 136 switches::kDisableGestureRequirementForMediaPlayback); | 136 switches::kDisableGestureRequirementForMediaPlayback); |
| 137 // Capturing pixel results does not yet work when implementation-side | 137 // Capturing pixel results does not yet work when implementation-side |
| 138 // painting is enabled. See http://crbug.com/250777 | 138 // painting is enabled. See http://crbug.com/250777 |
| 139 command_line.AppendSwitch(cc::switches::kDisableImplSidePainting); | 139 command_line.AppendSwitch(cc::switches::kDisableImplSidePainting); |
| 140 #endif | 140 #endif |
| 141 | 141 |
| 142 if (!command_line.HasSwitch(switches::kEnableThreadedCompositing)) | 142 if (!command_line.HasSwitch(switches::kEnableThreadedCompositing)) |
| 143 command_line.AppendSwitch(cc::switches::kDisableThreadedAnimation); | 143 command_line.AppendSwitch(cc::switches::kDisableThreadedAnimation); |
| 144 if (command_line.HasSwitch(switches::kEnableSoftwareCompositing)) | |
| 145 command_line.AppendSwitch(switches::kEnableSoftwareCompositingGLAdapter); | |
| 146 | 144 |
| 147 command_line.AppendSwitch(switches::kEnableInbandTextTracks); | 145 command_line.AppendSwitch(switches::kEnableInbandTextTracks); |
| 148 | 146 |
| 149 net::CookieMonster::EnableFileScheme(); | 147 net::CookieMonster::EnableFileScheme(); |
| 150 | 148 |
| 151 // Unless/until WebM files are added to the media layout tests, we need to | 149 // Unless/until WebM files are added to the media layout tests, we need to |
| 152 // avoid removing MP4/H264/AAC so that layout tests can run on Android. | 150 // avoid removing MP4/H264/AAC so that layout tests can run on Android. |
| 153 #if !defined(OS_ANDROID) | 151 #if !defined(OS_ANDROID) |
| 154 net::RemoveProprietaryMediaTypesAndCodecsForTests(); | 152 net::RemoveProprietaryMediaTypesAndCodecsForTests(); |
| 155 #endif | 153 #endif |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 browser_client_.reset(new ShellContentBrowserClient); | 220 browser_client_.reset(new ShellContentBrowserClient); |
| 223 return browser_client_.get(); | 221 return browser_client_.get(); |
| 224 } | 222 } |
| 225 | 223 |
| 226 ContentRendererClient* ShellMainDelegate::CreateContentRendererClient() { | 224 ContentRendererClient* ShellMainDelegate::CreateContentRendererClient() { |
| 227 renderer_client_.reset(new ShellContentRendererClient); | 225 renderer_client_.reset(new ShellContentRendererClient); |
| 228 return renderer_client_.get(); | 226 return renderer_client_.get(); |
| 229 } | 227 } |
| 230 | 228 |
| 231 } // namespace content | 229 } // namespace content |
| OLD | NEW |