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

Unified Diff: chrome/browser/chrome_browser_field_trials_desktop.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
Index: chrome/browser/chrome_browser_field_trials_desktop.cc
===================================================================
--- chrome/browser/chrome_browser_field_trials_desktop.cc (revision 246096)
+++ chrome/browser/chrome_browser_field_trials_desktop.cc (working copy)
@@ -67,15 +67,24 @@
trial->Disable();
}
-void SetupLowLatencyFlashAudioFieldTrial() {
+void SetupFlashHardwareVideoDecodeFieldTrial() {
+#if defined(OS_WIN)
+ // End this trial on a patch Tuesday.
scoped_refptr<base::FieldTrial> trial(
base::FieldTrialList::FactoryGetFieldTrial(
- content::kLowLatencyFlashAudioFieldTrialName, 100, "Standard",
- 2013, 9, 1, base::FieldTrial::SESSION_RANDOMIZED, NULL));
+ content::kFlashHwVideoDecodeFieldTrialName, 100, "Standard",
+ 2014, 6, 10, base::FieldTrial::ONE_TIME_RANDOMIZED, NULL));
Alexei Svitkine (slow) 2014/01/22 16:27:24 It's better to initialize field trials entirely fr
- // Trial is enabled for dev / beta / canary users only.
- if (chrome::VersionInfo::GetChannel() != chrome::VersionInfo::CHANNEL_STABLE)
- trial->AppendGroup(content::kLowLatencyFlashAudioFieldTrialEnabledName, 25);
+ // Hardware decode is enabled for Windows canary/dev/unbranded users. On beta
+ // channel it is enabled with 50% and on stable with 1% probability.
+ chrome::VersionInfo::Channel channel = chrome::VersionInfo::GetChannel();
+ if (channel == chrome::VersionInfo::CHANNEL_STABLE)
+ trial->AppendGroup(content::kFlashHwVideoDecodeFieldTrialEnabledName, 1);
+ else if (channel == chrome::VersionInfo::CHANNEL_BETA)
+ trial->AppendGroup(content::kFlashHwVideoDecodeFieldTrialEnabledName, 50);
+ else
+ trial->AppendGroup(content::kFlashHwVideoDecodeFieldTrialEnabledName, 100);
+#endif // defined(OS_WIN)
}
void SetupPreReadFieldTrial() {
@@ -133,7 +142,7 @@
SetupInfiniteCacheFieldTrial();
DisableShowProfileSwitcherTrialIfNecessary();
SetupShowAppLauncherPromoFieldTrial(local_state);
- SetupLowLatencyFlashAudioFieldTrial();
+ SetupFlashHardwareVideoDecodeFieldTrial();
SetupPreReadFieldTrial();
}
« no previous file with comments | « no previous file | content/browser/ppapi_plugin_process_host.cc » ('j') | content/browser/ppapi_plugin_process_host.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698