OLD | NEW |
(Empty) | |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 class Platform(object): |
| 6 """The platform that the target browser is running on. |
| 7 |
| 8 Provides a limited interface to obtain stats from the platform itself, where |
| 9 possible. |
| 10 """ |
| 11 |
| 12 def GetSurfaceCollector(self, trace_tag): |
| 13 """Platforms may be able to collect GL surface stats.""" |
| 14 class StubSurfaceCollector(object): |
| 15 def __init__(self, trace_tag): |
| 16 pass |
| 17 def __enter__(self): |
| 18 pass |
| 19 def __exit__(self, *args): |
| 20 pass |
| 21 |
| 22 return StubSurfaceCollector(trace_tag) |
OLD | NEW |