| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "content/browser/gpu/gpu_data_manager_impl_private.h" | 5 #include "content/browser/gpu/gpu_data_manager_impl_private.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <iterator> | 8 #include <iterator> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 759 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 770 gpu_driver_bugs_.end()) { | 770 gpu_driver_bugs_.end()) { |
| 771 command_line->AppendSwitch(switches::kCreateDefaultGLContext); | 771 command_line->AppendSwitch(switches::kCreateDefaultGLContext); |
| 772 } | 772 } |
| 773 | 773 |
| 774 #if defined(USE_OZONE) | 774 #if defined(USE_OZONE) |
| 775 if (base::CommandLine::ForCurrentProcess()->HasSwitch( | 775 if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 776 switches::kEnableDrmAtomic)) { | 776 switches::kEnableDrmAtomic)) { |
| 777 command_line->AppendSwitch(switches::kEnableDrmAtomic); | 777 command_line->AppendSwitch(switches::kEnableDrmAtomic); |
| 778 } | 778 } |
| 779 #endif | 779 #endif |
| 780 #if defined(OS_WIN) | |
| 781 if (IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_ACCELERATED_VPX_DECODE) && | |
| 782 gpu_preferences) { | |
| 783 gpu_preferences->enable_accelerated_vpx_decode = | |
| 784 gpu::GpuPreferences::VPX_VENDOR_NONE; | |
| 785 } | |
| 786 #endif | |
| 787 | 780 |
| 788 #if BUILDFLAG(ENABLE_WEBRTC) | 781 #if BUILDFLAG(ENABLE_WEBRTC) |
| 789 if (IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_ENCODE)) { | 782 if (IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_ENCODE)) { |
| 790 #if defined (OS_ANDROID) | 783 #if defined (OS_ANDROID) |
| 791 // On Android HW H264 is enabled by default behind a flag now, regardless of | 784 // On Android HW H264 is enabled by default behind a flag now, regardless of |
| 792 // the blacklist. Disable HW encoding if every single HW codec is disabled. | 785 // the blacklist. Disable HW encoding if every single HW codec is disabled. |
| 793 // TODO(braveyao): remove this once the blacklist is removed | 786 // TODO(braveyao): remove this once the blacklist is removed |
| 794 // (crbug.com/638664). | 787 // (crbug.com/638664). |
| 795 if (!base::FeatureList::IsEnabled(features::kWebRtcHWH264Encoding)) { | 788 if (!base::FeatureList::IsEnabled(features::kWebRtcHWH264Encoding)) { |
| 796 #endif | 789 #endif |
| (...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1347 gpu_info_.context_info_state = gpu::kCollectInfoFatalFailure; | 1340 gpu_info_.context_info_state = gpu::kCollectInfoFatalFailure; |
| 1348 #if defined(OS_WIN) | 1341 #if defined(OS_WIN) |
| 1349 gpu_info_.dx_diagnostics_info_state = gpu::kCollectInfoFatalFailure; | 1342 gpu_info_.dx_diagnostics_info_state = gpu::kCollectInfoFatalFailure; |
| 1350 #endif | 1343 #endif |
| 1351 complete_gpu_info_already_requested_ = true; | 1344 complete_gpu_info_already_requested_ = true; |
| 1352 // Some observers might be waiting. | 1345 // Some observers might be waiting. |
| 1353 NotifyGpuInfoUpdate(); | 1346 NotifyGpuInfoUpdate(); |
| 1354 } | 1347 } |
| 1355 | 1348 |
| 1356 } // namespace content | 1349 } // namespace content |
| OLD | NEW |