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

Side by Side Diff: content/test/gpu/gpu_tests/trace_test.py

Issue 1816623002: Reenable IOSurface Canvas2D. Disable new trace tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments from kbr. 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2015 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2015 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 from gpu_tests import gpu_test_base 4 from gpu_tests import gpu_test_base
5 from gpu_tests import trace_test_expectations 5 from gpu_tests import trace_test_expectations
6 import page_sets 6 import page_sets
7 7
8 from telemetry.page import page_test 8 from telemetry.page import page_test
9 from telemetry.timeline import model as model_module 9 from telemetry.timeline import model as model_module
10 from telemetry.timeline import tracing_config 10 from telemetry.timeline import tracing_config
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 def GetCategoryName(self): 80 def GetCategoryName(self):
81 return TOPLEVEL_DEVICE_CATEGORY 81 return TOPLEVEL_DEVICE_CATEGORY
82 82
83 83
84 class TraceTestBase(gpu_test_base.TestBase): 84 class TraceTestBase(gpu_test_base.TestBase):
85 """Base class for the trace tests.""" 85 """Base class for the trace tests."""
86 def CreateStorySet(self, options): 86 def CreateStorySet(self, options):
87 # Utilize pixel tests page set as a set of simple pages to load. 87 # Utilize pixel tests page set as a set of simple pages to load.
88 story_set = page_sets.PixelTestsStorySet(self.GetExpectations(), 88 story_set = page_sets.PixelTestsStorySet(self.GetExpectations(),
89 base_name=self.Name()) 89 base_name=self.Name())
90
91 # Skip some stories as a temporary debugging measure.
92 # https://crbug.com/595754.
93 # stories = []
94 # for story in story_set.stories:
95 # if '2DCanvasWebGL' not in story.display_name:
96 # stories.append(story)
97 # story_set.stories = stories
Ken Russell (switch to Gerrit) 2016/03/21 21:14:10 This code is commented out? Don't see how it will
erikchen 2016/03/21 21:27:52 I didn't expect to be able to skip running a test
98
90 for story in story_set: 99 for story in story_set:
91 story.script_to_evaluate_on_commit = test_harness_script 100 story.script_to_evaluate_on_commit = test_harness_script
92 return story_set 101 return story_set
93 102
94 103
95 class TraceTest(TraceTestBase): 104 class TraceTest(TraceTestBase):
96 """Tests GPU traces are plumbed through properly.""" 105 """Tests GPU traces are plumbed through properly."""
97 test = _TraceValidator 106 test = _TraceValidator
98 name = 'TraceTest' 107 name = 'TraceTest'
99 108
(...skipping 12 matching lines...) Expand all
112 """Tests GPU Device traces show up on devices that support it.""" 121 """Tests GPU Device traces show up on devices that support it."""
113 test = _DeviceTraceValidator 122 test = _DeviceTraceValidator
114 name = 'DeviceTraceTest' 123 name = 'DeviceTraceTest'
115 124
116 @classmethod 125 @classmethod
117 def Name(cls): 126 def Name(cls):
118 return 'device_trace_test' 127 return 'device_trace_test'
119 128
120 def _CreateExpectations(self): 129 def _CreateExpectations(self):
121 return trace_test_expectations.DeviceTraceTestExpectations() 130 return trace_test_expectations.DeviceTraceTestExpectations()
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698