11e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)# Copyright 2013 The Chromium Authors. All rights reserved.
21e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)# Use of this source code is governed by a BSD-style license that can be
31e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)# found in the LICENSE file.
41e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)
51e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)from telemetry.page import test_expectations as expectations
61e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)
71e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)# Valid expectation conditions are:
81e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)#
91e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)# Operating systems:
101e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)#     win, xp, vista, win7, mac, leopard, snowleopard, lion, mountainlion,
111320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci#     mavericks, yosemite, linux, chromeos, android
121e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)#
131e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)# GPU vendors:
141e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)#     amd, arm, broadcom, hisilicon, intel, imagination, nvidia, qualcomm,
151e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)#     vivante
161e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)#
171e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)# Specific GPUs can be listed as a tuple with vendor name and device ID.
181e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)# Examples: ('nvidia', 0x1234), ('arm', 'Mali-T604')
191e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)# Device IDs must be paired with a GPU vendor.
201e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)
211e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)class HardwareAcceleratedFeatureExpectations(expectations.TestExpectations):
221e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)  def SetExpectations(self):
231e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)    # Accelerated 2D canvas is not available on Linux due to driver instability
241e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)    self.Fail('HardwareAcceleratedFeature.canvas_accelerated',
251e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)        ['linux'], bug=254724)
26