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

Unified Diff: content/public/browser/gpu_utils.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/renderer_host/render_process_host_impl.cc ('k') | content/public/common/content_features.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/gpu_utils.cc
diff --git a/content/public/browser/gpu_utils.cc b/content/public/browser/gpu_utils.cc
index 7ac9c72396a2b8ba4677285c3b9dc820d2273f6b..8605b2d52b10d3dfb73b068ef24467ad417b62c0 100644
--- a/content/public/browser/gpu_utils.cc
+++ b/content/public/browser/gpu_utils.cc
@@ -6,6 +6,7 @@
#include "base/command_line.h"
#include "base/strings/string_number_conversions.h"
+#include "content/public/common/content_features.h"
#include "content/public/common/content_switches.h"
#include "gpu/command_buffer/service/gpu_switches.h"
#include "gpu/config/gpu_switches.h"
@@ -46,9 +47,8 @@ const gpu::GpuPreferences GetGpuPreferencesFromCommandLine() {
#endif
#if BUILDFLAG(ENABLE_WEBRTC)
gpu_preferences.disable_web_rtc_hw_encoding =
- command_line->HasSwitch(switches::kDisableWebRtcHWEncoding) &&
- command_line->GetSwitchValueASCII(switches::kDisableWebRtcHWEncoding)
- .empty();
+ command_line->HasSwitch(switches::kDisableWebRtcHWVP8Encoding) &&
+ !base::FeatureList::IsEnabled(features::kWebRtcHWH264Encoding);
#endif
#if defined(OS_WIN)
uint32_t enable_accelerated_vpx_decode_val =
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/public/common/content_features.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698