| 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 787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 798 gpu_driver_bugs_.end()) { | 798 gpu_driver_bugs_.end()) { |
| 799 command_line->AppendSwitch(switches::kCreateDefaultGLContext); | 799 command_line->AppendSwitch(switches::kCreateDefaultGLContext); |
| 800 } | 800 } |
| 801 | 801 |
| 802 #if defined(USE_OZONE) | 802 #if defined(USE_OZONE) |
| 803 if (base::CommandLine::ForCurrentProcess()->HasSwitch( | 803 if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 804 switches::kEnableDrmAtomic)) { | 804 switches::kEnableDrmAtomic)) { |
| 805 command_line->AppendSwitch(switches::kEnableDrmAtomic); | 805 command_line->AppendSwitch(switches::kEnableDrmAtomic); |
| 806 } | 806 } |
| 807 #endif | 807 #endif |
| 808 #if defined(OS_WIN) | |
| 809 if (IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_ACCELERATED_VPX_DECODE) && | |
| 810 gpu_preferences) { | |
| 811 gpu_preferences->enable_accelerated_vpx_decode = | |
| 812 gpu::GpuPreferences::VPX_VENDOR_NONE; | |
| 813 } | |
| 814 #endif | |
| 815 | 808 |
| 816 #if BUILDFLAG(ENABLE_WEBRTC) | 809 #if BUILDFLAG(ENABLE_WEBRTC) |
| 817 if (IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_ENCODE)) { | 810 if (IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_ENCODE)) { |
| 818 #if defined (OS_ANDROID) | 811 #if defined (OS_ANDROID) |
| 819 // On Android HW H264 is enabled by default behind a flag now, regardless of | 812 // On Android HW H264 is enabled by default behind a flag now, regardless of |
| 820 // the blacklist. Disable HW encoding if every single HW codec is disabled. | 813 // the blacklist. Disable HW encoding if every single HW codec is disabled. |
| 821 // TODO(braveyao): remove this once the blacklist is removed | 814 // TODO(braveyao): remove this once the blacklist is removed |
| 822 // (crbug.com/638664). | 815 // (crbug.com/638664). |
| 823 if (!base::FeatureList::IsEnabled(features::kWebRtcHWH264Encoding)) { | 816 if (!base::FeatureList::IsEnabled(features::kWebRtcHWH264Encoding)) { |
| 824 #endif | 817 #endif |
| (...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1407 gpu_info_.context_info_state = gpu::kCollectInfoFatalFailure; | 1400 gpu_info_.context_info_state = gpu::kCollectInfoFatalFailure; |
| 1408 #if defined(OS_WIN) | 1401 #if defined(OS_WIN) |
| 1409 gpu_info_.dx_diagnostics_info_state = gpu::kCollectInfoFatalFailure; | 1402 gpu_info_.dx_diagnostics_info_state = gpu::kCollectInfoFatalFailure; |
| 1410 #endif | 1403 #endif |
| 1411 complete_gpu_info_already_requested_ = true; | 1404 complete_gpu_info_already_requested_ = true; |
| 1412 // Some observers might be waiting. | 1405 // Some observers might be waiting. |
| 1413 NotifyGpuInfoUpdate(); | 1406 NotifyGpuInfoUpdate(); |
| 1414 } | 1407 } |
| 1415 | 1408 |
| 1416 } // namespace content | 1409 } // namespace content |
| OLD | NEW |