Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Side by Side Diff: content/test/gpu/page_sets/pixel_tests.py

Issue 1804243002: Re-enable IOSurface Canvas2D. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Compile errors from rebase, still... Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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',
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 26 matching lines...) Expand all
110 self.AddStory(PixelTestsPage( 118 self.AddStory(PixelTestsPage(
111 url='file://../../data/gpu/pixel_scissor.html', 119 url='file://../../data/gpu/pixel_scissor.html',
112 name=base_name + '.ScissorTestWithPreserveDrawingBuffer' + es3_suffix, 120 name=base_name + '.ScissorTestWithPreserveDrawingBuffer' + es3_suffix,
113 test_rect=[0, 0, 300, 300], 121 test_rect=[0, 0, 300, 300],
114 revision=0, # This is not used. 122 revision=0, # This is not used.
115 story_set=self, 123 story_set=self,
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
128 self.AddStory(PixelTestsPage(
129 url='file://../../data/gpu/pixel_canvas2d_webgl.html',
130 name=base_name + '.2DCanvasWebGL',
131 test_rect=[0, 0, 400, 400],
132 revision=1,
133 story_set=self,
134 shared_page_state_class=shared_page_state_class,
135 expectations=expectations))
136
120 @property 137 @property
121 def allow_mixed_story_states(self): 138 def allow_mixed_story_states(self):
122 # 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
123 # a different SharedPageState on Mac which tests them with the 140 # a different SharedPageState on Mac which tests them with the
124 # Core Profile rendering path. 141 # Core Profile rendering path.
125 return True 142 return True
OLDNEW
« no previous file with comments | « content/test/gpu/gpu_tests/pixel_expectations.py ('k') | third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698