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

Unified Diff: content/browser/gpu/gpu_data_manager_impl_private.cc

Issue 2549283002: Android: enable WebRTC HW H264 with a flag by default (Closed)
Patch Set: fix histograms value 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/gpu/compositor_util.cc ('k') | content/browser/gpu/gpu_process_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gpu/gpu_data_manager_impl_private.cc
diff --git a/content/browser/gpu/gpu_data_manager_impl_private.cc b/content/browser/gpu/gpu_data_manager_impl_private.cc
index 78e7c4b36807678cf0cfe0b35b646731c8b40737..e114814bd9f61f01e0561a54a0cdf24d1d932a41 100644
--- a/content/browser/gpu/gpu_data_manager_impl_private.cc
+++ b/content/browser/gpu/gpu_data_manager_impl_private.cc
@@ -28,6 +28,7 @@
#include "content/public/browser/gpu_data_manager_observer.h"
#include "content/public/common/content_client.h"
#include "content/public/common/content_constants.h"
+#include "content/public/common/content_features.h"
#include "content/public/common/content_switches.h"
#include "content/public/common/web_preferences.h"
#include "gpu/command_buffer/service/gpu_preferences.h"
@@ -692,8 +693,8 @@ void GpuDataManagerImplPrivate::AppendRendererCommandLine(
command_line->AppendSwitch(switches::kDisableAcceleratedVideoDecode);
#if BUILDFLAG(ENABLE_WEBRTC)
if (IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_ENCODE) &&
- !command_line->HasSwitch(switches::kDisableWebRtcHWEncoding))
- command_line->AppendSwitch(switches::kDisableWebRtcHWEncoding);
+ !command_line->HasSwitch(switches::kDisableWebRtcHWVP8Encoding))
+ command_line->AppendSwitch(switches::kDisableWebRtcHWVP8Encoding);
#endif
#if defined(USE_AURA)
@@ -775,11 +776,12 @@ void GpuDataManagerImplPrivate::AppendGpuCommandLine(
#if BUILDFLAG(ENABLE_WEBRTC)
if (IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_ENCODE) &&
- !command_line->HasSwitch(switches::kDisableWebRtcHWEncoding)) {
+ !command_line->HasSwitch(switches::kDisableWebRtcHWVP8Encoding) &&
+ !base::FeatureList::IsEnabled(features::kWebRtcHWH264Encoding)) {
if (gpu_preferences) {
gpu_preferences->disable_web_rtc_hw_encoding = true;
} else {
- command_line->AppendSwitch(switches::kDisableWebRtcHWEncoding);
+ command_line->AppendSwitch(switches::kDisableWebRtcHWVP8Encoding);
}
}
#endif
« no previous file with comments | « content/browser/gpu/compositor_util.cc ('k') | content/browser/gpu/gpu_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698