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

Side by Side Diff: chromecast/browser/cast_browser_main_parts.cc

Issue 837573003: Chromecast: adds disable_display define for headless builds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « no previous file | chromecast/browser/cast_content_browser_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | chromecast/browser/cast_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698