summaryrefslogtreecommitdiffstats
path: root/tools/perf/page_sets/webgl_supported_shared_state.py
blob: 89463f42cc0364acc82813d22c86e2102a68b813 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import logging

from telemetry.page import shared_page_state


class WebGLSupportedSharedState(shared_page_state.SharedPageState):
  def CanRunOnBrowser(self, browser_info):
    if not browser_info.HasWebGLSupport():
      logging.warning('Browser does not support webgl, skipping test')
      return False
    return True