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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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) |
235 #if !BUILDFLAG(IS_CAST_AUDIO_ONLY) | 235 #if !BUILDFLAG(IS_CAST_AUDIO_ONLY) |
236 { switches::kEnableHardwareOverlays, "" }, | 236 { switches::kEnableHardwareOverlays, "cast-underlay" }, |
237 #endif | 237 #endif |
238 #endif | 238 #endif |
239 #endif // defined(OS_LINUX) | 239 #endif // defined(OS_LINUX) |
240 // Needed so that our call to GpuDataManager::SetGLStrings doesn't race | 240 // Needed so that our call to GpuDataManager::SetGLStrings doesn't race |
241 // against GPU process creation (which is otherwise triggered from | 241 // against GPU process creation (which is otherwise triggered from |
242 // BrowserThreadsStarted). The GPU process will be created as soon as a | 242 // BrowserThreadsStarted). The GPU process will be created as soon as a |
243 // renderer needs it, which always happens after main loop starts. | 243 // renderer needs it, which always happens after main loop starts. |
244 { switches::kDisableGpuEarlyInit, "" }, | 244 { switches::kDisableGpuEarlyInit, "" }, |
245 // TODO(halliwell): Cast builds don't support ES3. Remove this switch when | 245 // TODO(halliwell): Cast builds don't support ES3. Remove this switch when |
246 // support is added (crbug.com/659395) | 246 // support is added (crbug.com/659395) |
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
541 | 541 |
542 void CastBrowserMainParts::PostDestroyThreads() { | 542 void CastBrowserMainParts::PostDestroyThreads() { |
543 #if !defined(OS_ANDROID) | 543 #if !defined(OS_ANDROID) |
544 media_resource_tracker_->FinalizeAndDestroy(); | 544 media_resource_tracker_->FinalizeAndDestroy(); |
545 media_resource_tracker_ = nullptr; | 545 media_resource_tracker_ = nullptr; |
546 #endif | 546 #endif |
547 } | 547 } |
548 | 548 |
549 } // namespace shell | 549 } // namespace shell |
550 } // namespace chromecast | 550 } // namespace chromecast |
OLD | NEW |