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

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

Issue 2902773004: cc: Add finch feature flag for checker-imaging. (Closed)
Patch Set: pass Created 3 years, 7 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 | « content/public/common/content_features.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2017 The Chromium Authors. All rights reserved. 1 # Copyright 2017 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 import logging 5 import logging
6 import os 6 import os
7 import sys 7 import sys
8 8
9 from gpu_tests import gpu_integration_test 9 from gpu_tests import gpu_integration_test
10 from gpu_tests import gpu_process_expectations 10 from gpu_tests import gpu_process_expectations
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 result = True 347 result = True
348 for name, status in feature_status_list.items(): 348 for name, status in feature_status_list.items():
349 if name == 'multiple_raster_threads': 349 if name == 'multiple_raster_threads':
350 result = result and status == 'enabled_on' 350 result = result and status == 'enabled_on'
351 elif name == 'native_gpu_memory_buffers': 351 elif name == 'native_gpu_memory_buffers':
352 result = result and status == 'disabled_software' 352 result = result and status == 'disabled_software'
353 elif name == 'webgl': 353 elif name == 'webgl':
354 result = result and status == 'enabled_readback' 354 result = result and status == 'enabled_readback'
355 elif name == 'webgl2': 355 elif name == 'webgl2':
356 result = result and status == 'unavailable_off' 356 result = result and status == 'unavailable_off'
357 elif name == 'checker_imaging':
358 pass
357 else: 359 else:
358 result = result and status == 'unavailable_software' 360 result = result and status == 'unavailable_software'
359 if not result: 361 if not result:
360 self.fail('WebGL readback setup failed: %s' % feature_status_list) 362 self.fail('WebGL readback setup failed: %s' % feature_status_list)
361 363
362 def _GpuProcess_driver_bug_workarounds_upon_gl_renderer(self, test_path): 364 def _GpuProcess_driver_bug_workarounds_upon_gl_renderer(self, test_path):
363 is_platform_android = self._RunningOnAndroid() 365 is_platform_android = self._RunningOnAndroid()
364 if is_platform_android: 366 if is_platform_android:
365 # Hit id 108 from kGpuDriverBugListEntries. 367 # Hit id 108 from kGpuDriverBugListEntries.
366 self.RestartBrowserIfNecessaryWithArgs([ 368 self.RestartBrowserIfNecessaryWithArgs([
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
568 self.fail("Expected 'SwiftShader' in GPU info GL renderer string") 570 self.fail("Expected 'SwiftShader' in GPU info GL renderer string")
569 if 'Google' not in gpu.aux_attributes['gl_vendor']: 571 if 'Google' not in gpu.aux_attributes['gl_vendor']:
570 self.fail("Expected 'Google' in GPU info GL vendor string") 572 self.fail("Expected 'Google' in GPU info GL vendor string")
571 device = gpu.devices[0] 573 device = gpu.devices[0]
572 if not device: 574 if not device:
573 self.fail("System Info doesn't have a device") 575 self.fail("System Info doesn't have a device")
574 576
575 def load_tests(loader, tests, pattern): 577 def load_tests(loader, tests, pattern):
576 del loader, tests, pattern # Unused. 578 del loader, tests, pattern # Unused.
577 return gpu_integration_test.LoadAllTestsInModule(sys.modules[__name__]) 579 return gpu_integration_test.LoadAllTestsInModule(sys.modules[__name__])
OLDNEW
« no previous file with comments | « content/public/common/content_features.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698