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

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

Issue 965643002: Chromecast: always enable CMA pipeline. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: compile fix Created 5 years, 9 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 | 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 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 <signal.h> 7 #include <signal.h>
8 #include <sys/prctl.h> 8 #include <sys/prctl.h>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 { switches::kEnableOverlayFullscreenVideo, ""}, 107 { switches::kEnableOverlayFullscreenVideo, ""},
108 { switches::kDisableInfobarForProtectedMediaIdentifier, ""}, 108 { switches::kDisableInfobarForProtectedMediaIdentifier, ""},
109 { switches::kDisableGestureRequirementForMediaPlayback, ""}, 109 { switches::kDisableGestureRequirementForMediaPlayback, ""},
110 { switches::kForceUseOverlayEmbeddedVideo, ""}, 110 { switches::kForceUseOverlayEmbeddedVideo, ""},
111 #endif 111 #endif
112 // Always enable HTMLMediaElement logs. 112 // Always enable HTMLMediaElement logs.
113 { switches::kBlinkPlatformLogChannels, "Media"}, 113 { switches::kBlinkPlatformLogChannels, "Media"},
114 #if defined(DISABLE_DISPLAY) 114 #if defined(DISABLE_DISPLAY)
115 { switches::kDisableGpu, "" }, 115 { switches::kDisableGpu, "" },
116 #endif 116 #endif
117 #if defined(OS_LINUX) && defined(ARCH_CPU_X86_FAMILY) 117 #if defined(OS_LINUX)
118 #if defined(ARCH_CPU_X86_FAMILY)
118 // This is needed for now to enable the egltest Ozone platform to work with 119 // This is needed for now to enable the egltest Ozone platform to work with
119 // current Linux/NVidia OpenGL drivers. 120 // current Linux/NVidia OpenGL drivers.
120 { switches::kIgnoreGpuBlacklist, ""}, 121 { switches::kIgnoreGpuBlacklist, ""},
121 // TODO(gusfernandez): This is needed to fix a bug with 122 #elif defined(ARCH_CPU_ARM_FAMILY) && !defined(DISABLE_DISPLAY)
122 // glPostSubBufferCHROMIUM (crbug.com/429200) 123 // On Linux arm, enable CMA pipeline by default.
123 { cc::switches::kUIDisablePartialSwap, ""}, 124 { switches::kEnableCmaMediaPipeline, "" },
124 #endif 125 #endif
126 #endif // defined(OS_LINUX)
125 // Needed to fix a bug where the raster thread doesn't get scheduled for a 127 // Needed to fix a bug where the raster thread doesn't get scheduled for a
126 // substantial time (~5 seconds). See https://crbug.com/441895. 128 // substantial time (~5 seconds). See https://crbug.com/441895.
127 { switches::kUseNormalPriorityForTileTaskWorkerThreads, "" }, 129 { switches::kUseNormalPriorityForTileTaskWorkerThreads, "" },
128 { NULL, NULL }, // Termination 130 { NULL, NULL }, // Termination
129 }; 131 };
130 132
131 void AddDefaultCommandLineSwitches(base::CommandLine* command_line) { 133 void AddDefaultCommandLineSwitches(base::CommandLine* command_line) {
132 int i = 0; 134 int i = 0;
133 while (g_default_switches[i].switch_name != NULL) { 135 while (g_default_switches[i].switch_name != NULL) {
134 command_line->AppendSwitchASCII( 136 command_line->AppendSwitchASCII(
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 NOTREACHED(); 278 NOTREACHED();
277 #else 279 #else
278 cast_browser_process_->cast_service()->Finalize(); 280 cast_browser_process_->cast_service()->Finalize();
279 cast_browser_process_->metrics_service_client()->Finalize(); 281 cast_browser_process_->metrics_service_client()->Finalize();
280 cast_browser_process_.reset(); 282 cast_browser_process_.reset();
281 #endif 283 #endif
282 } 284 }
283 285
284 } // namespace shell 286 } // namespace shell
285 } // namespace chromecast 287 } // namespace chromecast
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698