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

Unified Diff: content/child/runtime_features.cc

Issue 605373002: Chromium flag to enable accelerated YUV decoding (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added flag to chrome_restart_request 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
« no previous file with comments | « chrome/browser/chromeos/login/chrome_restart_request.cc ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/runtime_features.cc
diff --git a/content/child/runtime_features.cc b/content/child/runtime_features.cc
index 57395df32f4a346d7152166a31a7fc60d0d89514..513eca397c31ba4f7a7d993a01f666e8c011f6fe 100644
--- a/content/child/runtime_features.cc
+++ b/content/child/runtime_features.cc
@@ -139,6 +139,9 @@ void SetRuntimeFeaturesDefaultsAndUpdateFromArgs(
if (command_line.HasSwitch(switches::kEnableExperimentalCanvasFeatures))
WebRuntimeFeatures::enableExperimentalCanvasFeatures(true);
+ if (command_line.HasSwitch(switches::kEnableAcceleratedJpegDecoding))
+ WebRuntimeFeatures::enableDecodeToYUV(true);
+
if (command_line.HasSwitch(switches::kDisableDisplayList2dCanvas)) {
WebRuntimeFeatures::enableDisplayList2dCanvas(false);
} else if (command_line.HasSwitch(switches::kEnableDisplayList2dCanvas)) {
« no previous file with comments | « chrome/browser/chromeos/login/chrome_restart_request.cc ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698