OLD | NEW |
---|---|
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 telemetry.story import story_set as story_set_module | 5 from telemetry.story import story_set as story_set_module |
6 | 6 |
7 import sys | 7 import sys |
8 | 8 |
9 from gpu_tests import gpu_test_base | 9 from gpu_tests import gpu_test_base |
10 | 10 |
(...skipping 30 matching lines...) Expand all Loading... | |
41 | 41 |
42 | 42 |
43 class IOSurface2DCanvasSharedPageState(gpu_test_base.GpuSharedPageState): | 43 class IOSurface2DCanvasSharedPageState(gpu_test_base.GpuSharedPageState): |
44 def __init__(self, test, finder_options, story_set): | 44 def __init__(self, test, finder_options, story_set): |
45 super(IOSurface2DCanvasSharedPageState, self).__init__( | 45 super(IOSurface2DCanvasSharedPageState, self).__init__( |
46 test, finder_options, story_set) | 46 test, finder_options, story_set) |
47 finder_options.browser_options.AppendExtraBrowserArgs( | 47 finder_options.browser_options.AppendExtraBrowserArgs( |
48 ['--enable-accelerated-2d-canvas', | 48 ['--enable-accelerated-2d-canvas', |
49 '--disable-display-list-2d-canvas']) | 49 '--disable-display-list-2d-canvas']) |
50 | 50 |
51 class SoftwareOffscreenCanvas2DSharedPageState( | |
52 gpu_test_base.GpuSharedPageState): | |
53 def __init__(self, test, finder_options, story_set): | |
54 super(SoftwareOffscreenCanvas2DSharedPageState, self).__init__( | |
55 test, finder_options, story_set) | |
56 finder_options.browser_options.AppendExtraBrowserArgs( | |
57 ['--disable-accelerated-2d-canvas', | |
58 '--disable-gpu-compositing', | |
danakj
2016/09/23 20:40:01
Which this verifies software compositing when it's
| |
59 '--enable-experimental-canvas-features']) | |
51 | 60 |
52 class WebGLNonChromiumImageSharedPageState(gpu_test_base.GpuSharedPageState): | 61 class WebGLNonChromiumImageSharedPageState(gpu_test_base.GpuSharedPageState): |
53 def __init__(self, test, finder_options, story_set): | 62 def __init__(self, test, finder_options, story_set): |
54 super(WebGLNonChromiumImageSharedPageState, self).__init__( | 63 super(WebGLNonChromiumImageSharedPageState, self).__init__( |
55 test, finder_options, story_set) | 64 test, finder_options, story_set) |
56 finder_options.browser_options.AppendExtraBrowserArgs( | 65 finder_options.browser_options.AppendExtraBrowserArgs( |
57 ['--disable-webgl-image-chromium']) | 66 ['--disable-webgl-image-chromium']) |
58 | 67 |
59 | 68 |
60 class DisableMacOverlaysSharedPageState(gpu_test_base.GpuSharedPageState): | 69 class DisableMacOverlaysSharedPageState(gpu_test_base.GpuSharedPageState): |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
204 self.AddStory(PixelTestsPage( | 213 self.AddStory(PixelTestsPage( |
205 url='file://../../data/gpu/pixel_acceleratedOffscreen2d_commit_worker.html ', | 214 url='file://../../data/gpu/pixel_acceleratedOffscreen2d_commit_worker.html ', |
206 name=base_name + '.OffscreenCanvasAccelerated2DWorker' + es3_suffix, | 215 name=base_name + '.OffscreenCanvasAccelerated2DWorker' + es3_suffix, |
207 test_rect=[0, 0, 350, 350], | 216 test_rect=[0, 0, 350, 350], |
208 revision=1, | 217 revision=1, |
209 story_set=self, | 218 story_set=self, |
210 shared_page_state_class=EnableExperimentalCanvasFeaturesSharedPageState, | 219 shared_page_state_class=EnableExperimentalCanvasFeaturesSharedPageState, |
211 expectations=expectations)) | 220 expectations=expectations)) |
212 | 221 |
213 self.AddStory(PixelTestsPage( | 222 self.AddStory(PixelTestsPage( |
223 url='file://../../data/gpu/pixel_acceleratedOffscreen2d_commit_main.html', | |
224 name=base_name + '.OffscreenCanvasUnaccelerated2D' + es3_suffix, | |
225 test_rect=[0, 0, 350, 350], | |
226 revision=1, | |
227 story_set=self, | |
228 shared_page_state_class=SoftwareOffscreenCanvas2DSharedPageState, | |
229 expectations=expectations)) | |
230 | |
231 self.AddStory(PixelTestsPage( | |
214 url='file://../../data/gpu/pixel_canvas2d.html', | 232 url='file://../../data/gpu/pixel_canvas2d.html', |
215 name=base_name + '.Canvas2DRedBox' + es3_suffix, | 233 name=base_name + '.Canvas2DRedBox' + es3_suffix, |
216 test_rect=[0, 0, 300, 300], | 234 test_rect=[0, 0, 300, 300], |
217 revision=7, | 235 revision=7, |
218 story_set=self, | 236 story_set=self, |
219 shared_page_state_class=shared_page_state_class, | 237 shared_page_state_class=shared_page_state_class, |
220 expectations=expectations)) | 238 expectations=expectations)) |
221 | 239 |
222 self.AddStory(PixelTestsPage( | 240 self.AddStory(PixelTestsPage( |
223 url='file://../../data/gpu/pixel_css3d.html', | 241 url='file://../../data/gpu/pixel_css3d.html', |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
291 story_set=self, | 309 story_set=self, |
292 shared_page_state_class=shared_page_state_class, | 310 shared_page_state_class=shared_page_state_class, |
293 expectations=expectations)) | 311 expectations=expectations)) |
294 | 312 |
295 @property | 313 @property |
296 def allow_mixed_story_states(self): | 314 def allow_mixed_story_states(self): |
297 # Return True here in order to be able to add the same tests with | 315 # Return True here in order to be able to add the same tests with |
298 # a different SharedPageState on Mac which tests them with the | 316 # a different SharedPageState on Mac which tests them with the |
299 # Core Profile rendering path. | 317 # Core Profile rendering path. |
300 return True | 318 return True |
OLD | NEW |