OLD | NEW |
---|---|
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 from telemetry import benchmark | 6 from telemetry import benchmark |
7 | 7 |
8 from measurements import image_decoding | 8 from measurements import image_decoding |
9 import page_sets | 9 import page_sets |
10 | 10 |
11 | 11 |
12 @benchmark.Owner(emails=['cblume@chromium.org', 'reveman@chromium.org']) | 12 @benchmark.Owner(emails=['cblume@chromium.org', 'reveman@chromium.org']) |
13 class ImageDecodingToughImageCases(perf_benchmark.PerfBenchmark): | 13 class ImageDecodingToughImageCases(perf_benchmark.PerfBenchmark): |
14 test = image_decoding.ImageDecoding | 14 test = image_decoding.ImageDecoding |
15 # TODO: Rename this page set to tough_image_cases.py | 15 # TODO: Rename this page set to tough_image_cases.py |
16 page_set = page_sets.ImageDecodingMeasurementPageSet | 16 page_set = page_sets.ImageDecodingMeasurementPageSet |
17 | 17 |
18 @classmethod | 18 @classmethod |
19 def Name(cls): | 19 def Name(cls): |
20 return 'image_decoding.image_decoding_measurement' | 20 return 'image_decoding.image_decoding_measurement' |
21 | 21 |
22 @classmethod | 22 @classmethod |
23 def ShouldDisable(cls, possible_browser): | 23 def ShouldDisable(cls, possible_browser): |
24 # crbug.com/667501 | 24 # crbug.com/667501 |
25 return possible_browser.platform.GetDeviceTypeName() == 'Nexus 7' | 25 return possible_browser.platform.GetDeviceTypeName() == 'Nexus 7' |
26 | 26 |
27 def GetExpectations(self): | 27 def GetExpectations(self): |
28 return page_sets.ImageDecodingMeasurementStoryExpectations() | 28 return page_sets.ImageDecodingMeasurementStoryExpectations() |
29 | |
30 def CustomizeBrowserOptions(self, options): | |
31 options.AppendExtraBrowserArgs([ | |
32 # Disable asynchronous decodes in the renderer since these test | |
33 # rely on images have been decoded between consecutive | |
34 # requestAnimationFrames. | |
35 '--disable-checker-imaging' | |
nednguyen
2017/06/28 19:28:11
Chris: I hope the overhauled version of image deco
Khushal
2017/06/28 20:29:55
If the only thing this benchmark wants to measure
cblume
2017/06/28 21:15:28
I think our concern is if the existing perf was th
| |
36 ]) | |
OLD | NEW |