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

Unified Diff: content/browser/renderer_host/render_view_host_impl.cc

Issue 605373002: Chromium flag to enable accelerated YUV decoding (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months 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
Index: content/browser/renderer_host/render_view_host_impl.cc
diff --git a/content/browser/renderer_host/render_view_host_impl.cc b/content/browser/renderer_host/render_view_host_impl.cc
index 6b78d742666d65b1250cd7dc0bf49d84688efca6..65b4948d1f9e1d649fb37d5b4e163e9461170f8d 100644
--- a/content/browser/renderer_host/render_view_host_impl.cc
+++ b/content/browser/renderer_host/render_view_host_impl.cc
@@ -463,6 +463,9 @@ WebPreferences RenderViewHostImpl::ComputeWebkitPrefs(const GURL& url) {
command_line.HasSwitch(switches::kEnableDeferredImageDecoding) ||
content::IsImplSidePaintingEnabled();
+ prefs.decode_to_yuv_enabled =
+ command_line.HasSwitch(switches::kEnableAcceleratedJpegDecoding);
+
prefs.spatial_navigation_enabled = command_line.HasSwitch(
switches::kEnableSpatialNavigation);
« no previous file with comments | « no previous file | content/public/common/common_param_traits_macros.h » ('j') | content/public/common/common_param_traits_macros.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698