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

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

Issue 2300993003: CmaRenderer is dead. Long live MojoRenderer. (Closed)
Patch Set: update OWNERS file Created 4 years, 3 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
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 <stddef.h> 7 #include <stddef.h>
8 #include <string.h> 8 #include <string.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 #endif 224 #endif
225 #if BUILDFLAG(IS_CAST_AUDIO_ONLY) 225 #if BUILDFLAG(IS_CAST_AUDIO_ONLY)
226 { switches::kDisableGpu, "" }, 226 { switches::kDisableGpu, "" },
227 #endif 227 #endif
228 #if defined(OS_LINUX) 228 #if defined(OS_LINUX)
229 #if defined(ARCH_CPU_X86_FAMILY) 229 #if defined(ARCH_CPU_X86_FAMILY)
230 // This is needed for now to enable the x11 Ozone platform to work with 230 // This is needed for now to enable the x11 Ozone platform to work with
231 // current Linux/NVidia OpenGL drivers. 231 // current Linux/NVidia OpenGL drivers.
232 { switches::kIgnoreGpuBlacklist, ""}, 232 { switches::kIgnoreGpuBlacklist, ""},
233 #elif defined(ARCH_CPU_ARM_FAMILY) 233 #elif defined(ARCH_CPU_ARM_FAMILY)
234 // On Linux arm, enable CMA pipeline by default.
235 { switches::kEnableCmaMediaPipeline, "" },
236 #if !BUILDFLAG(IS_CAST_AUDIO_ONLY) 234 #if !BUILDFLAG(IS_CAST_AUDIO_ONLY)
237 { switches::kEnableHardwareOverlays, "" }, 235 { switches::kEnableHardwareOverlays, "" },
238 #endif 236 #endif
239 #endif 237 #endif
240 #endif // defined(OS_LINUX) 238 #endif // defined(OS_LINUX)
241 // Needed so that our call to GpuDataManager::SetGLStrings doesn't race 239 // Needed so that our call to GpuDataManager::SetGLStrings doesn't race
242 // against GPU process creation (which is otherwise triggered from 240 // against GPU process creation (which is otherwise triggered from
243 // BrowserThreadsStarted). The GPU process will be created as soon as a 241 // BrowserThreadsStarted). The GPU process will be created as soon as a
244 // renderer needs it, which always happens after main loop starts. 242 // renderer needs it, which always happens after main loop starts.
245 { switches::kDisableGpuEarlyInit, "" }, 243 { switches::kDisableGpuEarlyInit, "" },
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
540 538
541 void CastBrowserMainParts::PostDestroyThreads() { 539 void CastBrowserMainParts::PostDestroyThreads() {
542 #if !defined(OS_ANDROID) 540 #if !defined(OS_ANDROID)
543 media_resource_tracker_->FinalizeAndDestroy(); 541 media_resource_tracker_->FinalizeAndDestroy();
544 media_resource_tracker_ = nullptr; 542 media_resource_tracker_ = nullptr;
545 #endif 543 #endif
546 } 544 }
547 545
548 } // namespace shell 546 } // namespace shell
549 } // namespace chromecast 547 } // namespace chromecast
OLDNEW
« no previous file with comments | « chromecast/base/chromecast_switches_unittest.cc ('k') | chromecast/browser/cast_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698