| 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 revision=1, | 135 revision=1, |
| 136 story_set=self, | 136 story_set=self, |
| 137 shared_page_state_class=WebGLNonChromiumImageSharedPageState, | 137 shared_page_state_class=WebGLNonChromiumImageSharedPageState, |
| 138 expectations=expectations)) | 138 expectations=expectations)) |
| 139 | 139 |
| 140 # On macOS, test CSS filter effects with and without the CA compositor. | 140 # On macOS, test CSS filter effects with and without the CA compositor. |
| 141 self.AddStory(PixelTestsPage( | 141 self.AddStory(PixelTestsPage( |
| 142 url='file://../../data/gpu/filter_effects.html', | 142 url='file://../../data/gpu/filter_effects.html', |
| 143 name=base_name + '.CSSFilterEffects', | 143 name=base_name + '.CSSFilterEffects', |
| 144 test_rect=[0, 0, 300, 300], | 144 test_rect=[0, 0, 300, 300], |
| 145 revision=1, | 145 revision=2, |
| 146 story_set=self, | 146 story_set=self, |
| 147 shared_page_state_class=gpu_test_base.GpuSharedPageState, | 147 shared_page_state_class=gpu_test_base.GpuSharedPageState, |
| 148 expectations=expectations, | 148 expectations=expectations, |
| 149 tolerance=10)) | 149 tolerance=10)) |
| 150 | 150 |
| 151 self.AddStory(PixelTestsPage( | 151 self.AddStory(PixelTestsPage( |
| 152 url='file://../../data/gpu/filter_effects.html', | 152 url='file://../../data/gpu/filter_effects.html', |
| 153 name=base_name + '.CSSFilterEffects.NoOverlays', | 153 name=base_name + '.CSSFilterEffects.NoOverlays', |
| 154 test_rect=[0, 0, 300, 300], | 154 test_rect=[0, 0, 300, 300], |
| 155 revision=1, | 155 revision=2, |
| 156 story_set=self, | 156 story_set=self, |
| 157 shared_page_state_class=DisableMacOverlaysSharedPageState, | 157 shared_page_state_class=DisableMacOverlaysSharedPageState, |
| 158 expectations=expectations, | 158 expectations=expectations, |
| 159 tolerance=10)) | 159 tolerance=10)) |
| 160 | 160 |
| 161 def _AddAllPages(self, expectations, base_name, use_es3): | 161 def _AddAllPages(self, expectations, base_name, use_es3): |
| 162 if use_es3: | 162 if use_es3: |
| 163 es3_suffix = 'ES3' | 163 es3_suffix = 'ES3' |
| 164 shared_page_state_class = PixelTestsES3SharedPageState | 164 shared_page_state_class = PixelTestsES3SharedPageState |
| 165 else: | 165 else: |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 story_set=self, | 247 story_set=self, |
| 248 shared_page_state_class=shared_page_state_class, | 248 shared_page_state_class=shared_page_state_class, |
| 249 expectations=expectations)) | 249 expectations=expectations)) |
| 250 | 250 |
| 251 @property | 251 @property |
| 252 def allow_mixed_story_states(self): | 252 def allow_mixed_story_states(self): |
| 253 # Return True here in order to be able to add the same tests with | 253 # Return True here in order to be able to add the same tests with |
| 254 # a different SharedPageState on Mac which tests them with the | 254 # a different SharedPageState on Mac which tests them with the |
| 255 # Core Profile rendering path. | 255 # Core Profile rendering path. |
| 256 return True | 256 return True |
| OLD | NEW |