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 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 #if BUILDFLAG(IS_CAST_AUDIO_ONLY) | 229 #if BUILDFLAG(IS_CAST_AUDIO_ONLY) |
230 { switches::kDisableGpu, "" }, | 230 { switches::kDisableGpu, "" }, |
231 #endif | 231 #endif |
232 #if defined(OS_LINUX) | 232 #if defined(OS_LINUX) |
233 #if defined(ARCH_CPU_X86_FAMILY) | 233 #if defined(ARCH_CPU_X86_FAMILY) |
234 // This is needed for now to enable the x11 Ozone platform to work with | 234 // This is needed for now to enable the x11 Ozone platform to work with |
235 // current Linux/NVidia OpenGL drivers. | 235 // current Linux/NVidia OpenGL drivers. |
236 { switches::kIgnoreGpuBlacklist, ""}, | 236 { switches::kIgnoreGpuBlacklist, ""}, |
237 #elif defined(ARCH_CPU_ARM_FAMILY) | 237 #elif defined(ARCH_CPU_ARM_FAMILY) |
238 #if !BUILDFLAG(IS_CAST_AUDIO_ONLY) | 238 #if !BUILDFLAG(IS_CAST_AUDIO_ONLY) |
239 { switches::kEnableHardwareOverlays, "" }, | 239 {switches::kEnableHardwareOverlays, "cast"}, |
240 #endif | 240 #endif |
241 #endif | 241 #endif |
242 #endif // defined(OS_LINUX) | 242 #endif // defined(OS_LINUX) |
243 // Needed so that our call to GpuDataManager::SetGLStrings doesn't race | 243 // Needed so that our call to GpuDataManager::SetGLStrings doesn't race |
244 // against GPU process creation (which is otherwise triggered from | 244 // against GPU process creation (which is otherwise triggered from |
245 // BrowserThreadsStarted). The GPU process will be created as soon as a | 245 // BrowserThreadsStarted). The GPU process will be created as soon as a |
246 // renderer needs it, which always happens after main loop starts. | 246 // renderer needs it, which always happens after main loop starts. |
247 { switches::kDisableGpuEarlyInit, "" }, | 247 { switches::kDisableGpuEarlyInit, "" }, |
248 // TODO(halliwell): Cast builds don't support ES3. Remove this switch when | 248 // TODO(halliwell): Cast builds don't support ES3. Remove this switch when |
249 // support is added (crbug.com/659395) | 249 // support is added (crbug.com/659395) |
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
556 | 556 |
557 void CastBrowserMainParts::PostDestroyThreads() { | 557 void CastBrowserMainParts::PostDestroyThreads() { |
558 #if !defined(OS_ANDROID) | 558 #if !defined(OS_ANDROID) |
559 media_resource_tracker_->FinalizeAndDestroy(); | 559 media_resource_tracker_->FinalizeAndDestroy(); |
560 media_resource_tracker_ = nullptr; | 560 media_resource_tracker_ = nullptr; |
561 #endif | 561 #endif |
562 } | 562 } |
563 | 563 |
564 } // namespace shell | 564 } // namespace shell |
565 } // namespace chromecast | 565 } // namespace chromecast |
OLD | NEW |