def GenerateGpuTests(cls, options): # Include the device level trace tests, even though they're # currently skipped on all platforms, to give a hint that they # should perhaps be enabled in the future. for p in pixel_test_pages.DefaultPages('TraceTest'): yield (p.name, p.url, (TOPLEVEL_SERVICE_CATEGORY)) for p in pixel_test_pages.DefaultPages('DeviceTraceTest'): yield (p.name, p.url, (TOPLEVEL_DEVICE_CATEGORY))
def GenerateGpuTests(cls, options): # Include the device level trace tests, even though they're # currently skipped on all platforms, to give a hint that they # should perhaps be enabled in the future. for p in pixel_test_pages.DefaultPages('TraceTest'): yield (p.name, gpu_relative_path + p.url, { 'browser_args': [], 'category': cls._DisabledByDefaultTraceCategory('gpu.service'), 'test_harness_script': webgl_test_harness_script, 'finish_js_condition': 'domAutomationController._finished', 'success_eval_func': 'CheckGLCategory' }) for p in pixel_test_pages.DefaultPages('DeviceTraceTest'): yield (p.name, gpu_relative_path + p.url, { 'browser_args': [], 'category': cls._DisabledByDefaultTraceCategory('gpu.device'), 'test_harness_script': webgl_test_harness_script, 'finish_js_condition': 'domAutomationController._finished', 'success_eval_func': 'CheckGLCategory' }) for p in pixel_test_pages.DirectCompositionPages('VideoTraceTest'): success_eval_func = 'CheckVideoMode' if (p.other_args is not None and p.other_args.get('video_is_rotated', False)): # On several Intel GPUs we tested that support hardware overlays, # none of them promote a swap chain to hardware overlay if there is # rotation. success_eval_func = 'CheckVideoModeNoOverlay' yield (p.name, gpu_relative_path + p.url, { 'browser_args': p.browser_args, 'category': cls._DisabledByDefaultTraceCategory('gpu.service'), 'test_harness_script': basic_test_harness_script, 'finish_js_condition': 'domAutomationController._finished', 'success_eval_func': success_eval_func })
def GenerateGpuTests(cls, options): cls.SetParsedCommandLineOptions(options) name = 'Pixel' pages = pixel_test_pages.DefaultPages(name) pages += pixel_test_pages.ExperimentalCanvasFeaturesPages(name) for p in pages: yield (p.name, p.url, (p))
def GenerateGpuTests(cls, options): # Include the device level trace tests, even though they're # currently skipped on all platforms, to give a hint that they # should perhaps be enabled in the future. for p in pixel_test_pages.DefaultPages('TraceTest'): yield (p.name, gpu_relative_path + p.url, {'browser_args': [], 'category': TOPLEVEL_SERVICE_CATEGORY, 'test_harness_script': webgl_test_harness_script, 'finish_js_condition': 'domAutomationController._finished', 'expected_event_args': {'gl_category': 'gpu_toplevel'}}) for p in pixel_test_pages.DefaultPages('DeviceTraceTest'): yield (p.name, gpu_relative_path + p.url, {'browser_args': [], 'category': TOPLEVEL_DEVICE_CATEGORY, 'test_harness_script': webgl_test_harness_script, 'finish_js_condition': 'domAutomationController._finished', 'expected_event_args': {'gl_category': 'gpu_toplevel'}})
def GenerateGpuTests(cls, options): cls.SetParsedCommandLineOptions(options) name = 'Pixel' pages = pixel_test_pages.DefaultPages(name) pages += pixel_test_pages.ExperimentalCanvasFeaturesPages(name) if sys.platform.startswith('darwin'): pages += pixel_test_pages.MacSpecificPages(name) for p in pages: yield (p.name, p.url, (p))
def GenerateGpuTests(cls, options): # Include the device level trace tests, even though they're # currently skipped on all platforms, to give a hint that they # should perhaps be enabled in the future. for p in pixel_test_pages.DefaultPages('TraceTest'): yield (p.name, gpu_relative_path + p.url, {'browser_args': [], 'category': cls._DisabledByDefaultTraceCategory('gpu.service'), 'test_harness_script': webgl_test_harness_script, 'finish_js_condition': 'domAutomationController._finished', 'success_eval_func': 'CheckGLCategory'}) for p in pixel_test_pages.DefaultPages('DeviceTraceTest'): yield (p.name, gpu_relative_path + p.url, {'browser_args': [], 'category': cls._DisabledByDefaultTraceCategory('gpu.device'), 'test_harness_script': webgl_test_harness_script, 'finish_js_condition': 'domAutomationController._finished', 'success_eval_func': 'CheckGLCategory'}) for p in pixel_test_pages.DirectCompositionPages('VideoPathTraceTest'): yield (p.name, gpu_relative_path + p.url, {'browser_args': p.browser_args, 'category': cls._DisabledByDefaultTraceCategory('gpu.service'), 'test_harness_script': basic_test_harness_script, 'finish_js_condition': 'domAutomationController._finished', 'success_eval_func': 'CheckVideoPath', 'other_args': p.other_args}) for p in pixel_test_pages.DirectCompositionPages('OverlayModeTraceTest'): if p.other_args and p.other_args.get('video_is_rotated', False): # For all drivers we tested, when a video is rotated, frames won't # be promoted to hardware overlays. continue yield (p.name, gpu_relative_path + p.url, {'browser_args': p.browser_args, 'category': cls._DisabledByDefaultTraceCategory('gpu.service'), 'test_harness_script': basic_test_harness_script, 'finish_js_condition': 'domAutomationController._finished', 'success_eval_func': 'CheckOverlayMode', 'other_args': p.other_args})
def GenerateGpuTests(cls, options): cls.SetParsedCommandLineOptions(options) name = 'Pixel' pages = pixel_test_pages.DefaultPages(name) pages += pixel_test_pages.GpuRasterizationPages(name) pages += pixel_test_pages.ExperimentalCanvasFeaturesPages(name) # pages += pixel_test_pages.NoGpuProcessPages(name) # The following pages should run only on platforms where SwiftShader is # enabled. They are skipped on other platforms through test expectations. # pages += pixel_test_pages.SwiftShaderPages(name) if sys.platform.startswith('darwin'): pages += pixel_test_pages.MacSpecificPages(name) if sys.platform.startswith('win'): pages += pixel_test_pages.DirectCompositionPages(name) for p in pages: yield(p.name, gpu_relative_path + p.url, (p))