| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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( | 74 self.AddStory(PixelTestsPage( |
| 75 url='file://../../data/gpu/pixel_canvas2d_webgl.html', | 75 url='file://../../data/gpu/pixel_canvas2d_webgl.html', |
| 76 name=base_name + '.IOSurface2DCanvasWebGL', | 76 name=base_name + '.IOSurface2DCanvasWebGL', |
| 77 test_rect=[0, 0, 400, 400], | 77 test_rect=[0, 0, 300, 300], |
| 78 revision=1, | 78 revision=2, |
| 79 story_set=self, | 79 story_set=self, |
| 80 shared_page_state_class=IOSurface2DCanvasSharedPageState, | 80 shared_page_state_class=IOSurface2DCanvasSharedPageState, |
| 81 expectations=expectations)) | 81 expectations=expectations)) |
| 82 | 82 |
| 83 def _AddAllPages(self, expectations, base_name, use_es3): | 83 def _AddAllPages(self, expectations, base_name, use_es3): |
| 84 if use_es3: | 84 if use_es3: |
| 85 es3_suffix = 'ES3' | 85 es3_suffix = 'ES3' |
| 86 shared_page_state_class = PixelTestsES3SharedPageState | 86 shared_page_state_class = PixelTestsES3SharedPageState |
| 87 else: | 87 else: |
| 88 es3_suffix = '' | 88 es3_suffix = '' |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 test_rect=[0, 0, 300, 300], | 121 test_rect=[0, 0, 300, 300], |
| 122 revision=0, # This is not used. | 122 revision=0, # This is not used. |
| 123 story_set=self, | 123 story_set=self, |
| 124 shared_page_state_class=shared_page_state_class, | 124 shared_page_state_class=shared_page_state_class, |
| 125 expectations=expectations, | 125 expectations=expectations, |
| 126 expected_colors='../../data/gpu/pixel_scissor_expectations.json')) | 126 expected_colors='../../data/gpu/pixel_scissor_expectations.json')) |
| 127 | 127 |
| 128 self.AddStory(PixelTestsPage( | 128 self.AddStory(PixelTestsPage( |
| 129 url='file://../../data/gpu/pixel_canvas2d_webgl.html', | 129 url='file://../../data/gpu/pixel_canvas2d_webgl.html', |
| 130 name=base_name + '.2DCanvasWebGL', | 130 name=base_name + '.2DCanvasWebGL', |
| 131 test_rect=[0, 0, 400, 400], | 131 test_rect=[0, 0, 300, 300], |
| 132 revision=1, | 132 revision=2, |
| 133 story_set=self, | 133 story_set=self, |
| 134 shared_page_state_class=shared_page_state_class, | 134 shared_page_state_class=shared_page_state_class, |
| 135 expectations=expectations)) | 135 expectations=expectations)) |
| 136 | 136 |
| 137 @property | 137 @property |
| 138 def allow_mixed_story_states(self): | 138 def allow_mixed_story_states(self): |
| 139 # Return True here in order to be able to add the same tests with | 139 # Return True here in order to be able to add the same tests with |
| 140 # a different SharedPageState on Mac which tests them with the | 140 # a different SharedPageState on Mac which tests them with the |
| 141 # Core Profile rendering path. | 141 # Core Profile rendering path. |
| 142 return True | 142 return True |
| OLD | NEW |