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

Side by Side Diff: content/test/gpu/page_sets/gpu_process_tests.py

Issue 2482963002: fix incorrect about:gpu entry for WebGL2 (Closed)
Patch Set: fix test Created 4 years, 1 month 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/browser/gpu/compositor_util.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 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 import sys 4 import sys
5 from telemetry.story import story_set as story_set_module 5 from telemetry.story import story_set as story_set_module
6 from telemetry.page import page_test 6 from telemetry.page import page_test
7 7
8 from gpu_tests import gpu_test_base 8 from gpu_tests import gpu_test_base
9 9
10 class GpuProcessSharedPageState(gpu_test_base.GpuSharedPageState): 10 class GpuProcessSharedPageState(gpu_test_base.GpuSharedPageState):
(...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 feature_status_list = tab.EvaluateJavaScript(feature_status_js) 549 feature_status_list = tab.EvaluateJavaScript(feature_status_js)
550 result = True 550 result = True
551 for name, status in feature_status_list.items(): 551 for name, status in feature_status_list.items():
552 if name == 'multiple_raster_threads': 552 if name == 'multiple_raster_threads':
553 result = result and status == 'enabled_on' 553 result = result and status == 'enabled_on'
554 elif name == 'native_gpu_memory_buffers': 554 elif name == 'native_gpu_memory_buffers':
555 result = result and status == 'disabled_software' 555 result = result and status == 'disabled_software'
556 elif name == 'webgl': 556 elif name == 'webgl':
557 result = result and status == 'enabled_readback' 557 result = result and status == 'enabled_readback'
558 elif name == 'webgl2': 558 elif name == 'webgl2':
559 result = result and status == 'disabled_off' 559 result = result and status == 'unavailable_off'
560 else: 560 else:
561 result = result and status == 'unavailable_software' 561 result = result and status == 'unavailable_software'
562 if not result: 562 if not result:
563 raise page_test.Failure('WebGL readback setup failed: %s' \ 563 raise page_test.Failure('WebGL readback setup failed: %s' \
564 % feature_status_list) 564 % feature_status_list)
565 565
566 566
567 class HasTransparentVisualsShared(GpuProcessSharedPageState): 567 class HasTransparentVisualsShared(GpuProcessSharedPageState):
568 def __init__(self, test, finder_options, story_set): 568 def __init__(self, test, finder_options, story_set):
569 super(HasTransparentVisualsShared, self).__init__( 569 super(HasTransparentVisualsShared, self).__init__(
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
762 762
763 # There is currently no entry in kSoftwareRenderingListJson that enables 763 # There is currently no entry in kSoftwareRenderingListJson that enables
764 # a software GL driver on Android. 764 # a software GL driver on Android.
765 self.AddStory(SoftwareGpuProcessPage(self, expectations)) 765 self.AddStory(SoftwareGpuProcessPage(self, expectations))
766 766
767 @property 767 @property
768 def allow_mixed_story_states(self): 768 def allow_mixed_story_states(self):
769 # Return True here in order to be able to run pages with different browser 769 # Return True here in order to be able to run pages with different browser
770 # command line arguments. 770 # command line arguments.
771 return True 771 return True
OLDNEW
« no previous file with comments | « content/browser/gpu/compositor_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698