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 <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 Loading... | |
224 { switches::kEnableDefaultMediaSession, "" }, | 224 { switches::kEnableDefaultMediaSession, "" }, |
225 #endif | 225 #endif |
226 #if BUILDFLAG(IS_CAST_AUDIO_ONLY) | 226 #if BUILDFLAG(IS_CAST_AUDIO_ONLY) |
227 { switches::kDisableGpu, "" }, | 227 { switches::kDisableGpu, "" }, |
228 #endif | 228 #endif |
229 #if defined(OS_LINUX) | 229 #if defined(OS_LINUX) |
230 #if defined(ARCH_CPU_X86_FAMILY) | 230 #if defined(ARCH_CPU_X86_FAMILY) |
231 // This is needed for now to enable the x11 Ozone platform to work with | 231 // This is needed for now to enable the x11 Ozone platform to work with |
232 // current Linux/NVidia OpenGL drivers. | 232 // current Linux/NVidia OpenGL drivers. |
233 { switches::kIgnoreGpuBlacklist, ""}, | 233 { switches::kIgnoreGpuBlacklist, ""}, |
234 #elif defined(ARCH_CPU_ARM_FAMILY) | 234 #elif defined(ARCH_CPU_ARM_FAMILY) |
slan
2016/09/02 16:57:13
Unrelated, but how does this work on MIPS?
alokp
2016/09/02 17:04:15
I am not sure what you mean? I just deleted the co
| |
235 // On Linux arm, enable CMA pipeline by default. | |
236 { switches::kEnableCmaMediaPipeline, "" }, | |
237 #if !BUILDFLAG(IS_CAST_AUDIO_ONLY) | 235 #if !BUILDFLAG(IS_CAST_AUDIO_ONLY) |
238 { switches::kEnableHardwareOverlays, "" }, | 236 { switches::kEnableHardwareOverlays, "" }, |
239 #endif | 237 #endif |
240 #endif | 238 #endif |
241 #endif // defined(OS_LINUX) | 239 #endif // defined(OS_LINUX) |
242 // Needed so that our call to GpuDataManager::SetGLStrings doesn't race | 240 // Needed so that our call to GpuDataManager::SetGLStrings doesn't race |
243 // against GPU process creation (which is otherwise triggered from | 241 // against GPU process creation (which is otherwise triggered from |
244 // BrowserThreadsStarted). The GPU process will be created as soon as a | 242 // BrowserThreadsStarted). The GPU process will be created as soon as a |
245 // renderer needs it, which always happens after main loop starts. | 243 // renderer needs it, which always happens after main loop starts. |
246 { switches::kDisableGpuEarlyInit, "" }, | 244 { switches::kDisableGpuEarlyInit, "" }, |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
546 | 544 |
547 void CastBrowserMainParts::PostDestroyThreads() { | 545 void CastBrowserMainParts::PostDestroyThreads() { |
548 #if !defined(OS_ANDROID) | 546 #if !defined(OS_ANDROID) |
549 media_resource_tracker_->FinalizeAndDestroy(); | 547 media_resource_tracker_->FinalizeAndDestroy(); |
550 media_resource_tracker_ = nullptr; | 548 media_resource_tracker_ = nullptr; |
551 #endif | 549 #endif |
552 } | 550 } |
553 | 551 |
554 } // namespace shell | 552 } // namespace shell |
555 } // namespace chromecast | 553 } // namespace chromecast |
OLD | NEW |