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

Side by Side Diff: tools/perf/benchmarks/media.py

Issue 2855333002: telemetry: support old builds that still use disable-gesture-requirement-for-media-playback flag. (Closed)
Patch Set: fix blink_perf as well Created 3 years, 7 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 unified diff | Download patch
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 from core import perf_benchmark 5 from core import perf_benchmark
6 6
7 from telemetry import benchmark 7 from telemetry import benchmark
8 from telemetry.page import legacy_page_test 8 from telemetry.page import legacy_page_test
9 from telemetry.timeline import chrome_trace_category_filter 9 from telemetry.timeline import chrome_trace_category_filter
10 from telemetry.value import list_of_scalar_values 10 from telemetry.value import list_of_scalar_values
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 return cls.IsSvelte(possible_browser) 149 return cls.IsSvelte(possible_browser)
150 150
151 @classmethod 151 @classmethod
152 def Name(cls): 152 def Name(cls):
153 return 'media.android.tough_video_cases_tbmv2' 153 return 'media.android.tough_video_cases_tbmv2'
154 154
155 def SetExtraBrowserOptions(self, options): 155 def SetExtraBrowserOptions(self, options):
156 # By default, Chrome on Android does not allow autoplay 156 # By default, Chrome on Android does not allow autoplay
157 # of media: it requires a user gesture event to start a video. 157 # of media: it requires a user gesture event to start a video.
158 # The following option works around that. 158 # The following option works around that.
159 options.AppendExtraBrowserArgs(['--ignore-autoplay-restrictions']) 159 # Note that both of these flags should be used until every build from
160 # ToT to Stable switches over to one flag or another. This is to support
161 # reference builds.
162 options.AppendExtraBrowserArgs(
163 ['--ignore-autoplay-restrictions',
164 '--disable-gesture-requirement-for-media-playback'])
160 165
161 166
162 # This isn't running anywhere. See crbug/709161. 167 # This isn't running anywhere. See crbug/709161.
163 @benchmark.Enabled('chromeos') 168 @benchmark.Enabled('chromeos')
164 @benchmark.Owner(emails=['crouleau@chromium.org'], 169 @benchmark.Owner(emails=['crouleau@chromium.org'],
165 component='Internals>Media') 170 component='Internals>Media')
166 class MediaChromeOS4kOnly(perf_benchmark.PerfBenchmark): 171 class MediaChromeOS4kOnly(perf_benchmark.PerfBenchmark):
167 """Benchmark for media performance on ChromeOS using only is_4k test content. 172 """Benchmark for media performance on ChromeOS using only is_4k test content.
168 """ 173 """
169 test = media.Media 174 test = media.Media
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 216
212 @classmethod 217 @classmethod
213 def Name(cls): 218 def Name(cls):
214 return 'media.mse_cases' 219 return 'media.mse_cases'
215 220
216 def SetExtraBrowserOptions(self, options): 221 def SetExtraBrowserOptions(self, options):
217 # Needed to allow XHR requests to return stream objects. 222 # Needed to allow XHR requests to return stream objects.
218 options.AppendExtraBrowserArgs( 223 options.AppendExtraBrowserArgs(
219 ['--enable-experimental-web-platform-features', 224 ['--enable-experimental-web-platform-features',
220 '--ignore-autoplay-restrictions']) 225 '--ignore-autoplay-restrictions'])
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698