Commit 67e8bdf6 authored by jbauman's avatar jbauman Committed by Commit bot

Add video pixel tests for DirectComposition layers.

The --enable-direct-composition-layers flag will force chrome to use
DirectComposition layers for hardware-decoded video (assuming
DirectComposition is actually supported on the system).

BUG=704389
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel

Review-Url: https://codereview.chromium.org/2805173002
Cr-Commit-Position: refs/heads/master@{#463008}
parent 9309a096
...@@ -55,6 +55,9 @@ class PixelExpectations(GpuTestExpectations): ...@@ -55,6 +55,9 @@ class PixelExpectations(GpuTestExpectations):
# TODO(jbauman): Times out on Pixel C. # TODO(jbauman): Times out on Pixel C.
self.Fail('Pixel_Video_VP9', ['android', 'nvidia'], bug=704389) self.Fail('Pixel_Video_VP9', ['android', 'nvidia'], bug=704389)
# TODO(jbauman): Re-enable when references images created.
self.Fail('Pixel_DirectComposition_Video_*', ['win'], bug=704389)
# TODO(xlai): Remove this after test dimension is shrunk # TODO(xlai): Remove this after test dimension is shrunk
# Intended to skip only Nexus 5 # Intended to skip only Nexus 5
self.Skip('Pixel_OffscreenCanvasAccelerated2D', self.Skip('Pixel_OffscreenCanvasAccelerated2D',
......
...@@ -122,6 +122,8 @@ class PixelIntegrationTest( ...@@ -122,6 +122,8 @@ class PixelIntegrationTest(
pages += pixel_test_pages.ExperimentalCanvasFeaturesPages(name) pages += pixel_test_pages.ExperimentalCanvasFeaturesPages(name)
if sys.platform.startswith('darwin'): if sys.platform.startswith('darwin'):
pages += pixel_test_pages.MacSpecificPages(name) pages += pixel_test_pages.MacSpecificPages(name)
if sys.platform.startswith('win'):
pages += pixel_test_pages.DirectCompositionPages(name)
for p in pages: for p in pages:
yield(p.name, gpu_relative_path + p.url, (p)) yield(p.name, gpu_relative_path + p.url, (p))
......
...@@ -487,3 +487,21 @@ def MacSpecificPages(base_name): ...@@ -487,3 +487,21 @@ def MacSpecificPages(base_name):
tolerance=10, tolerance=10,
browser_args=['--disable-mac-overlays']), browser_args=['--disable-mac-overlays']),
] ]
def DirectCompositionPages(base_name):
browser_args = ['--enable-direct-composition-layers']
return [
PixelTestPage(
'pixel_video_mp4.html',
base_name + '_DirectComposition_Video_MP4',
test_rect=[0, 0, 300, 300],
revision=1,
browser_args=browser_args),
PixelTestPage(
'pixel_video_vp9.html',
base_name + '_DirectComposition_Video_VP9',
test_rect=[0, 0, 300, 300],
revision=1,
browser_args=browser_args),
]
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment