OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "chromecast/browser/cast_browser_main_parts.h" | 5 #include "chromecast/browser/cast_browser_main_parts.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/files/file_util.h" | 8 #include "base/files/file_util.h" |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 { switches::kMediaDrmEnableNonCompositing, ""}, | 49 { switches::kMediaDrmEnableNonCompositing, ""}, |
50 { switches::kEnableOverlayFullscreenVideo, ""}, | 50 { switches::kEnableOverlayFullscreenVideo, ""}, |
51 { switches::kDisableInfobarForProtectedMediaIdentifier, ""}, | 51 { switches::kDisableInfobarForProtectedMediaIdentifier, ""}, |
52 { switches::kDisableGestureRequirementForMediaPlayback, ""}, | 52 { switches::kDisableGestureRequirementForMediaPlayback, ""}, |
53 { switches::kForceUseOverlayEmbeddedVideo, ""}, | 53 { switches::kForceUseOverlayEmbeddedVideo, ""}, |
54 #endif | 54 #endif |
55 { switches::kDisableApplicationCache, "" }, | 55 { switches::kDisableApplicationCache, "" }, |
56 { switches::kDisablePlugins, "" }, | 56 { switches::kDisablePlugins, "" }, |
57 // Always enable HTMLMediaElement logs. | 57 // Always enable HTMLMediaElement logs. |
58 { switches::kBlinkPlatformLogChannels, "Media"}, | 58 { switches::kBlinkPlatformLogChannels, "Media"}, |
| 59 #if defined(DISABLE_DISPLAY) |
| 60 { switches::kDisableGpu, "" }, |
| 61 #endif |
59 #if defined(OS_LINUX) && defined(ARCH_CPU_X86_FAMILY) | 62 #if defined(OS_LINUX) && defined(ARCH_CPU_X86_FAMILY) |
60 // This is needed for now to enable the egltest Ozone platform to work with | 63 // This is needed for now to enable the egltest Ozone platform to work with |
61 // current Linux/NVidia OpenGL drivers. | 64 // current Linux/NVidia OpenGL drivers. |
62 { switches::kIgnoreGpuBlacklist, ""}, | 65 { switches::kIgnoreGpuBlacklist, ""}, |
63 // TODO(gusfernandez): This is needed to fix a bug with | 66 // TODO(gusfernandez): This is needed to fix a bug with |
64 // glPostSubBufferCHROMIUM (crbug.com/429200) | 67 // glPostSubBufferCHROMIUM (crbug.com/429200) |
65 { cc::switches::kUIDisablePartialSwap, ""}, | 68 { cc::switches::kUIDisablePartialSwap, ""}, |
66 #endif | 69 #endif |
67 // Needed to fix a bug where the raster thread doesn't get scheduled for a | 70 // Needed to fix a bug where the raster thread doesn't get scheduled for a |
68 // substantial time (~5 seconds). See https://crbug.com/441895. | 71 // substantial time (~5 seconds). See https://crbug.com/441895. |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 return true; | 193 return true; |
191 } | 194 } |
192 | 195 |
193 void CastBrowserMainParts::PostMainMessageLoopRun() { | 196 void CastBrowserMainParts::PostMainMessageLoopRun() { |
194 cast_browser_process_->cast_service()->Stop(); | 197 cast_browser_process_->cast_service()->Stop(); |
195 cast_browser_process_.reset(); | 198 cast_browser_process_.reset(); |
196 } | 199 } |
197 | 200 |
198 } // namespace shell | 201 } // namespace shell |
199 } // namespace chromecast | 202 } // namespace chromecast |
OLD | NEW |