summaryrefslogtreecommitdiffstats
path: root/Tools/Scripts/webkitpy/layout_tests/port/chromium_gpu.py
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/Scripts/webkitpy/layout_tests/port/chromium_gpu.py')
-rw-r--r--Tools/Scripts/webkitpy/layout_tests/port/chromium_gpu.py48
1 files changed, 1 insertions, 47 deletions
diff --git a/Tools/Scripts/webkitpy/layout_tests/port/chromium_gpu.py b/Tools/Scripts/webkitpy/layout_tests/port/chromium_gpu.py
index 167f23e..ffc2cf7 100644
--- a/Tools/Scripts/webkitpy/layout_tests/port/chromium_gpu.py
+++ b/Tools/Scripts/webkitpy/layout_tests/port/chromium_gpu.py
@@ -60,6 +60,7 @@ def get(platform=None, port_name='chromium-gpu', **kwargs):
# FIXME: These should really be a mixin class.
def _set_gpu_options(port):
+ port._graphics_type = 'gpu'
if port.get_option('accelerated_compositing') is None:
port._options.accelerated_compositing = True
if port.get_option('accelerated_2d_canvas') is None:
@@ -84,17 +85,6 @@ def _tests(port, paths):
return test_files.find(port, paths)
-def _test_platform_names(self):
- return ('mac', 'win', 'linux')
-
-
-def _test_platform_name_to_name(self, test_platform_name):
- if test_platform_name in self.test_platform_names():
- return 'chromium-gpu-' + test_platform_name
- raise ValueError('Unsupported test_platform_name: %s' %
- test_platform_name)
-
-
class ChromiumGpuLinuxPort(chromium_linux.ChromiumLinuxPort):
def __init__(self, port_name='chromium-gpu-linux', **kwargs):
chromium_linux.ChromiumLinuxPort.__init__(self, port_name=port_name, **kwargs)
@@ -112,21 +102,9 @@ class ChromiumGpuLinuxPort(chromium_linux.ChromiumLinuxPort):
def default_child_processes(self):
return 1
- def graphics_type(self):
- return 'gpu'
-
def tests(self, paths):
return _tests(self, paths)
- def test_platform_name(self):
- return 'linux'
-
- def test_platform_names(self):
- return _test_platform_names(self)
-
- def test_platform_name_to_name(self, name):
- return _test_platform_name_to_name(self, name)
-
class ChromiumGpuMacPort(chromium_mac.ChromiumMacPort):
def __init__(self, port_name='chromium-gpu-mac', **kwargs):
@@ -144,21 +122,9 @@ class ChromiumGpuMacPort(chromium_mac.ChromiumMacPort):
def default_child_processes(self):
return 1
- def graphics_type(self):
- return 'gpu'
-
def tests(self, paths):
return _tests(self, paths)
- def test_platform_name(self):
- return 'mac'
-
- def test_platform_names(self):
- return _test_platform_names(self)
-
- def test_platform_name_to_name(self, name):
- return _test_platform_name_to_name(self, name)
-
class ChromiumGpuWinPort(chromium_win.ChromiumWinPort):
def __init__(self, port_name='chromium-gpu-win', **kwargs):
@@ -176,17 +142,5 @@ class ChromiumGpuWinPort(chromium_win.ChromiumWinPort):
def default_child_processes(self):
return 1
- def graphics_type(self):
- return 'gpu'
-
def tests(self, paths):
return _tests(self, paths)
-
- def test_platform_name(self):
- return 'win'
-
- def test_platform_names(self):
- return _test_platform_names(self)
-
- def test_platform_name_to_name(self, name):
- return _test_platform_name_to_name(self, name)