OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 | 4 |
5 class Platform(object): | 5 class Platform(object): |
6 """The platform that the target browser is running on. | 6 """The platform that the target browser is running on. |
7 | 7 |
8 Provides a limited interface to obtain stats from the platform itself, where | 8 Provides a limited interface to obtain stats from the platform itself, where |
9 possible. | 9 possible. |
10 """ | 10 """ |
11 | 11 |
12 def GetSurfaceCollector(self, trace_tag): | 12 def GetSurfaceCollector(self, trace_tag): |
13 """Platforms may be able to collect GL surface stats.""" | 13 """Platforms may be able to collect GL surface stats.""" |
14 class StubSurfaceCollector(object): | 14 class StubSurfaceCollector(object): |
15 def __init__(self, trace_tag): | 15 def __init__(self, trace_tag): |
16 pass | 16 pass |
17 def __enter__(self): | 17 def __enter__(self): |
18 pass | 18 pass |
19 def __exit__(self, *args): | 19 def __exit__(self, *args): |
20 pass | 20 pass |
21 | 21 |
22 return StubSurfaceCollector(trace_tag) | 22 return StubSurfaceCollector(trace_tag) |
OLD | NEW |