Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(204)

Side by Side Diff: content/browser/gpu/gpu_data_manager_impl_private.cc

Issue 2573933002: Restore switch kDisableWebRtcHWEncoding (Closed)
Patch Set: check kDisableWebRtcHWEncoding only at creating encoder_factory Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 758 matching lines...) Expand 10 before | Expand all | Expand 10 after
769 #if defined(OS_WIN) 769 #if defined(OS_WIN)
770 if (IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_ACCELERATED_VPX_DECODE) && 770 if (IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_ACCELERATED_VPX_DECODE) &&
771 gpu_preferences) { 771 gpu_preferences) {
772 gpu_preferences->enable_accelerated_vpx_decode = 772 gpu_preferences->enable_accelerated_vpx_decode =
773 gpu::GpuPreferences::VPX_VENDOR_NONE; 773 gpu::GpuPreferences::VPX_VENDOR_NONE;
774 } 774 }
775 #endif 775 #endif
776 776
777 #if BUILDFLAG(ENABLE_WEBRTC) 777 #if BUILDFLAG(ENABLE_WEBRTC)
778 if (IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_ENCODE) && 778 if (IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_ENCODE) &&
779 !command_line->HasSwitch(switches::kDisableWebRtcHWVP8Encoding) && 779 !command_line->HasSwitch(switches::kDisableWebRtcHWVP8Encoding)) {
780 command_line->AppendSwitch(switches::kDisableWebRtcHWVP8Encoding);
Pawel Osciak 2016/12/15 05:45:53 Could we use kDisableWebRtcHWEncoding only here, a
braveyao 2016/12/15 20:46:24 It depends on how we decide to create VEA on Andro
Pawel Osciak 2016/12/20 01:49:17 Yes, that's what should be expected from the name
braveyao 2016/12/20 19:09:14 "IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_ACCELE
Pawel Osciak 2016/12/21 01:12:57 Regardless of what system this is for, if there ar
braveyao 2016/12/21 02:01:39 Done. GPU_FEATURE_TYPE_ACCELERATED_VIDEO_ENCODE i
781 }
782
783 if (!command_line->HasSwitch(switches::kDisableWebRtcHWEncoding) &&
784 command_line->HasSwitch(switches::kDisableWebRtcHWVP8Encoding) &&
780 !base::FeatureList::IsEnabled(features::kWebRtcHWH264Encoding)) { 785 !base::FeatureList::IsEnabled(features::kWebRtcHWH264Encoding)) {
781 if (gpu_preferences) { 786 if (gpu_preferences) {
782 gpu_preferences->disable_web_rtc_hw_encoding = true; 787 gpu_preferences->disable_web_rtc_hw_encoding = true;
783 } else { 788 } else {
784 command_line->AppendSwitch(switches::kDisableWebRtcHWVP8Encoding); 789 command_line->AppendSwitch(switches::kDisableWebRtcHWEncoding);
785 } 790 }
786 } 791 }
787 #endif 792 #endif
788 793
789 if (gpu_preferences) { // enable_es3_apis 794 if (gpu_preferences) { // enable_es3_apis
790 bool blacklisted = IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_WEBGL2); 795 bool blacklisted = IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_WEBGL2);
791 bool enabled = base::CommandLine::ForCurrentProcess()->HasSwitch( 796 bool enabled = base::CommandLine::ForCurrentProcess()->HasSwitch(
792 switches::kEnableES3APIs); 797 switches::kEnableES3APIs);
793 bool disabled = base::CommandLine::ForCurrentProcess()->HasSwitch( 798 bool disabled = base::CommandLine::ForCurrentProcess()->HasSwitch(
794 switches::kDisableES3APIs); 799 switches::kDisableES3APIs);
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after
1324 gpu_info_.context_info_state = gpu::kCollectInfoFatalFailure; 1329 gpu_info_.context_info_state = gpu::kCollectInfoFatalFailure;
1325 #if defined(OS_WIN) 1330 #if defined(OS_WIN)
1326 gpu_info_.dx_diagnostics_info_state = gpu::kCollectInfoFatalFailure; 1331 gpu_info_.dx_diagnostics_info_state = gpu::kCollectInfoFatalFailure;
1327 #endif 1332 #endif
1328 complete_gpu_info_already_requested_ = true; 1333 complete_gpu_info_already_requested_ = true;
1329 // Some observers might be waiting. 1334 // Some observers might be waiting.
1330 NotifyGpuInfoUpdate(); 1335 NotifyGpuInfoUpdate();
1331 } 1336 }
1332 1337
1333 } // namespace content 1338 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698