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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
64 # On OS X, test the IOSurface 2D Canvas compositing path. | 64 # On OS X, test the IOSurface 2D Canvas compositing path. |
65 if sys.platform.startswith('darwin'): | 65 if sys.platform.startswith('darwin'): |
66 self.AddStory(PixelTestsPage( | 66 self.AddStory(PixelTestsPage( |
67 url='file://../../data/gpu/pixel_canvas2d_accelerated.html', | 67 url='file://../../data/gpu/pixel_canvas2d_accelerated.html', |
68 name=base_name + '.IOSurface2DCanvas', | 68 name=base_name + '.IOSurface2DCanvas', |
69 test_rect=[0, 0, 400, 400], | 69 test_rect=[0, 0, 400, 400], |
70 revision=1, | 70 revision=1, |
71 story_set=self, | 71 story_set=self, |
72 shared_page_state_class=IOSurface2DCanvasSharedPageState, | 72 shared_page_state_class=IOSurface2DCanvasSharedPageState, |
73 expectations=expectations)) | 73 expectations=expectations)) |
74 self.AddStory(PixelTestsPage( | |
75 url='file://../../data/gpu/pixel_canvas2d_webgl.html', | |
Ken Russell (switch to Gerrit)
2016/03/16 00:45:55
This is excellent. Could you add this test to the
erikchen
2016/03/16 01:07:10
Done.
| |
76 name=base_name + '.IOSurface2DCanvasWebGL', | |
77 test_rect=[0, 0, 400, 400], | |
78 revision=1, | |
79 story_set=self, | |
80 shared_page_state_class=IOSurface2DCanvasSharedPageState, | |
81 expectations=expectations)) | |
74 | 82 |
75 def _AddAllPages(self, expectations, base_name, use_es3): | 83 def _AddAllPages(self, expectations, base_name, use_es3): |
76 if use_es3: | 84 if use_es3: |
77 es3_suffix = 'ES3' | 85 es3_suffix = 'ES3' |
78 shared_page_state_class = PixelTestsES3SharedPageState | 86 shared_page_state_class = PixelTestsES3SharedPageState |
79 else: | 87 else: |
80 es3_suffix = '' | 88 es3_suffix = '' |
81 shared_page_state_class = gpu_test_base.GpuSharedPageState | 89 shared_page_state_class = gpu_test_base.GpuSharedPageState |
82 | 90 |
83 self.AddStory(PixelTestsPage( | 91 self.AddStory(PixelTestsPage( |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
116 shared_page_state_class=shared_page_state_class, | 124 shared_page_state_class=shared_page_state_class, |
117 expectations=expectations, | 125 expectations=expectations, |
118 expected_colors='../../data/gpu/pixel_scissor_expectations.json')) | 126 expected_colors='../../data/gpu/pixel_scissor_expectations.json')) |
119 | 127 |
120 @property | 128 @property |
121 def allow_mixed_story_states(self): | 129 def allow_mixed_story_states(self): |
122 # Return True here in order to be able to add the same tests with | 130 # Return True here in order to be able to add the same tests with |
123 # a different SharedPageState on Mac which tests them with the | 131 # a different SharedPageState on Mac which tests them with the |
124 # Core Profile rendering path. | 132 # Core Profile rendering path. |
125 return True | 133 return True |
OLD | NEW |