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

Unified Diff: content/browser/ppapi_plugin_process_host.cc

Issue 141753006: Enable Windows Flash hw video decode trial. (Closed) Base URL: https://src.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 11 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/chrome_browser_field_trials_desktop.cc ('k') | content/public/common/content_constants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/ppapi_plugin_process_host.cc
===================================================================
--- content/browser/ppapi_plugin_process_host.cc (revision 246096)
+++ content/browser/ppapi_plugin_process_host.cc (working copy)
@@ -307,11 +307,15 @@
// TODO(vtl): Stop passing flash args in the command line, or windows is
// going to explode.
std::string field_trial =
- base::FieldTrialList::FindFullName(kLowLatencyFlashAudioFieldTrialName);
+ base::FieldTrialList::FindFullName(kFlashHwVideoDecodeFieldTrialName);
std::string existing_args =
browser_command_line.GetSwitchValueASCII(switches::kPpapiFlashArgs);
- if (field_trial == kLowLatencyFlashAudioFieldTrialEnabledName)
- existing_args.append(" enable_low_latency_audio=1");
+ if (field_trial == kFlashHwVideoDecodeFieldTrialEnabledName) {
+ // Arguments passed to Flash are comma delimited.
+ if (!existing_args.empty())
+ existing_args.append(",");
+ existing_args.append("enable_hw_video_decode=1");
+ }
cmd_line->AppendSwitchASCII(switches::kPpapiFlashArgs, existing_args);
}
« no previous file with comments | « chrome/browser/chrome_browser_field_trials_desktop.cc ('k') | content/public/common/content_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698