| 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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 struct DefaultCommandLineSwitch { | 187 struct DefaultCommandLineSwitch { |
| 188 const char* const switch_name; | 188 const char* const switch_name; |
| 189 const char* const switch_value; | 189 const char* const switch_value; |
| 190 }; | 190 }; |
| 191 | 191 |
| 192 DefaultCommandLineSwitch g_default_switches[] = { | 192 DefaultCommandLineSwitch g_default_switches[] = { |
| 193 #if defined(OS_ANDROID) | 193 #if defined(OS_ANDROID) |
| 194 // Disables Chromecast-specific WiFi-related features on ATV for now. | 194 // Disables Chromecast-specific WiFi-related features on ATV for now. |
| 195 { switches::kNoWifi, "" }, | 195 { switches::kNoWifi, "" }, |
| 196 { switches::kDisableGestureRequirementForMediaPlayback, ""}, | 196 { switches::kDisableGestureRequirementForMediaPlayback, ""}, |
| 197 // TODO(sanfin): Unified Media Pipeline is disabled on ATV because of extant | |
| 198 // issues with DRM and v8 that block media playback for numerous apps. | |
| 199 // Reenable when the Unified Media Pipeline is stable enough for testing. | |
| 200 { switches::kDisableUnifiedMediaPipeline, ""}, | |
| 201 { switches::kDisableMediaSuspend, ""}, | 197 { switches::kDisableMediaSuspend, ""}, |
| 202 #else | 198 #else |
| 203 // GPU shader disk cache disabling is largely to conserve disk space. | 199 // GPU shader disk cache disabling is largely to conserve disk space. |
| 204 { switches::kDisableGpuShaderDiskCache, "" }, | 200 { switches::kDisableGpuShaderDiskCache, "" }, |
| 205 #endif | 201 #endif |
| 206 // Always enable HTMLMediaElement logs. | 202 // Always enable HTMLMediaElement logs. |
| 207 { switches::kBlinkPlatformLogChannels, "Media"}, | 203 { switches::kBlinkPlatformLogChannels, "Media"}, |
| 208 #if BUILDFLAG(DISABLE_DISPLAY) | 204 #if BUILDFLAG(DISABLE_DISPLAY) |
| 209 { switches::kDisableGpu, "" }, | 205 { switches::kDisableGpu, "" }, |
| 210 #endif | 206 #endif |
| (...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 510 | 506 |
| 511 void CastBrowserMainParts::PostDestroyThreads() { | 507 void CastBrowserMainParts::PostDestroyThreads() { |
| 512 #if !defined(OS_ANDROID) | 508 #if !defined(OS_ANDROID) |
| 513 media_resource_tracker_->FinalizeAndDestroy(); | 509 media_resource_tracker_->FinalizeAndDestroy(); |
| 514 media_resource_tracker_ = nullptr; | 510 media_resource_tracker_ = nullptr; |
| 515 #endif | 511 #endif |
| 516 } | 512 } |
| 517 | 513 |
| 518 } // namespace shell | 514 } // namespace shell |
| 519 } // namespace chromecast | 515 } // namespace chromecast |
| OLD | NEW |