Chromium Code Reviews| 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 | 770 |
| 771 #if defined(OS_WIN) | 771 #if defined(OS_WIN) |
| 772 if (IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_ACCELERATED_VPX_DECODE) && | 772 if (IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_ACCELERATED_VPX_DECODE) && |
| 773 gpu_preferences) { | 773 gpu_preferences) { |
| 774 gpu_preferences->enable_accelerated_vpx_decode = | 774 gpu_preferences->enable_accelerated_vpx_decode = |
| 775 gpu::GpuPreferences::VPX_VENDOR_NONE; | 775 gpu::GpuPreferences::VPX_VENDOR_NONE; |
| 776 } | 776 } |
| 777 #endif | 777 #endif |
| 778 | 778 |
| 779 #if BUILDFLAG(ENABLE_WEBRTC) | 779 #if BUILDFLAG(ENABLE_WEBRTC) |
| 780 if (IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_ENCODE) && | 780 if (IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_ENCODE) && |
|
Pawel Osciak
2017/01/11 09:55:35
Sorry, I'm confused by the intended logic of this
braveyao
2017/01/11 20:46:06
First of all, now the blacklist is temporarily for
| |
| 781 !command_line->HasSwitch(switches::kDisableWebRtcHWVP8Encoding) && | 781 !command_line->HasSwitch(switches::kDisableWebRtcHWVP8Encoding)) { |
| 782 !base::FeatureList::IsEnabled(features::kWebRtcHWH264Encoding)) { | 782 command_line->AppendSwitch(switches::kDisableWebRtcHWVP8Encoding); |
| 783 if (gpu_preferences) { | 783 |
| 784 gpu_preferences->disable_web_rtc_hw_encoding = true; | 784 if (!base::FeatureList::IsEnabled(features::kWebRtcHWH264Encoding)) { |
| 785 } else { | 785 if (gpu_preferences) { |
| 786 command_line->AppendSwitch(switches::kDisableWebRtcHWVP8Encoding); | 786 gpu_preferences->disable_web_rtc_hw_encoding = true; |
| 787 } else if (!command_line->HasSwitch(switches::kDisableWebRtcHWEncoding)) { | |
| 788 command_line->AppendSwitch(switches::kDisableWebRtcHWEncoding); | |
| 789 } | |
| 787 } | 790 } |
| 788 } | 791 } |
| 789 #endif | 792 #endif |
| 790 | 793 |
| 791 if (gpu_preferences) { // enable_es3_apis | 794 if (gpu_preferences) { // enable_es3_apis |
| 792 bool blacklisted = IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_WEBGL2); | 795 bool blacklisted = IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_WEBGL2); |
| 793 bool enabled = base::CommandLine::ForCurrentProcess()->HasSwitch( | 796 bool enabled = base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 794 switches::kEnableES3APIs); | 797 switches::kEnableES3APIs); |
| 795 bool disabled = base::CommandLine::ForCurrentProcess()->HasSwitch( | 798 bool disabled = base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 796 switches::kDisableES3APIs); | 799 switches::kDisableES3APIs); |
| (...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1331 gpu_info_.context_info_state = gpu::kCollectInfoFatalFailure; | 1334 gpu_info_.context_info_state = gpu::kCollectInfoFatalFailure; |
| 1332 #if defined(OS_WIN) | 1335 #if defined(OS_WIN) |
| 1333 gpu_info_.dx_diagnostics_info_state = gpu::kCollectInfoFatalFailure; | 1336 gpu_info_.dx_diagnostics_info_state = gpu::kCollectInfoFatalFailure; |
| 1334 #endif | 1337 #endif |
| 1335 complete_gpu_info_already_requested_ = true; | 1338 complete_gpu_info_already_requested_ = true; |
| 1336 // Some observers might be waiting. | 1339 // Some observers might be waiting. |
| 1337 NotifyGpuInfoUpdate(); | 1340 NotifyGpuInfoUpdate(); |
| 1338 } | 1341 } |
| 1339 | 1342 |
| 1340 } // namespace content | 1343 } // namespace content |
| OLD | NEW |