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

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

Issue 2460943002: Lower ES3 capable requirement to GL 3.3 with extensions. (Closed)
Patch Set: address piman comment 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/public/browser/gpu_utils.cc ('k') | gpu/command_buffer/service/feature_info.cc » ('j') | 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 537 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 feature_status_js = 'browserBridge.gpuInfo.featureStatus.featureStatus' 548 feature_status_js = 'browserBridge.gpuInfo.featureStatus.featureStatus'
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':
559 result = result and status == 'disabled_off'
558 else: 560 else:
559 result = result and status == 'unavailable_software' 561 result = result and status == 'unavailable_software'
560 if not result: 562 if not result:
561 raise page_test.Failure('WebGL readback setup failed: %s' \ 563 raise page_test.Failure('WebGL readback setup failed: %s' \
562 % feature_status_list) 564 % feature_status_list)
563 565
564 566
565 class HasTransparentVisualsShared(GpuProcessSharedPageState): 567 class HasTransparentVisualsShared(GpuProcessSharedPageState):
566 def __init__(self, test, finder_options, story_set): 568 def __init__(self, test, finder_options, story_set):
567 super(HasTransparentVisualsShared, self).__init__( 569 super(HasTransparentVisualsShared, self).__init__(
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
760 762
761 # There is currently no entry in kSoftwareRenderingListJson that enables 763 # There is currently no entry in kSoftwareRenderingListJson that enables
762 # a software GL driver on Android. 764 # a software GL driver on Android.
763 self.AddStory(SoftwareGpuProcessPage(self, expectations)) 765 self.AddStory(SoftwareGpuProcessPage(self, expectations))
764 766
765 @property 767 @property
766 def allow_mixed_story_states(self): 768 def allow_mixed_story_states(self):
767 # 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
768 # command line arguments. 770 # command line arguments.
769 return True 771 return True
OLDNEW
« no previous file with comments | « content/public/browser/gpu_utils.cc ('k') | gpu/command_buffer/service/feature_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698