本文整理汇总了Python中build_options.OPTIONS.is_hw_renderer方法的典型用法代码示例。如果您正苦于以下问题:Python OPTIONS.is_hw_renderer方法的具体用法?Python OPTIONS.is_hw_renderer怎么用?Python OPTIONS.is_hw_renderer使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类build_options.OPTIONS
的用法示例。
在下文中一共展示了OPTIONS.is_hw_renderer方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: _compute_chrome_graphics_params
# 需要导入模块: from build_options import OPTIONS [as 别名]
# 或者: from build_options.OPTIONS import is_hw_renderer [as 别名]
def _compute_chrome_graphics_params(parsed_args):
params = []
params.append('--disable-gl-error-limit')
# Always use the compositor thread. All desktop Chrome except Linux already
# use it.
params.append('--enable-threaded-compositing')
if parsed_args.enable_osmesa:
params.append('--use-gl=osmesa')
# The NVidia GPU on buildbot is blacklisted due to unstableness of graphic
# driver even there is secondary Matrox GPU(http://crbug.com/145600). It
# happens with low memory but seems safe for buildbot. So passing
# ignore-gpu-blacklist to be able to use hardware acceleration.
if OPTIONS.is_hw_renderer():
params.append('--ignore-gpu-blacklist')
return params
示例2: set_test_options
# 需要导入模块: from build_options import OPTIONS [as 别名]
# 或者: from build_options.OPTIONS import is_hw_renderer [as 别名]
def set_test_options(args):
TEST_OPTIONS.set_is_running_on_buildbot(args.buildbot)
TEST_OPTIONS.set_supports_opengl(OPTIONS.is_hw_renderer() and
not args.use_xvfb)
TEST_OPTIONS.set_want_large_tests(args.include_large)