Index: tools/chrome_remote_control/chrome_remote_control/platform.py |
diff --git a/tools/chrome_remote_control/chrome_remote_control/platform.py b/tools/chrome_remote_control/chrome_remote_control/platform.py |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c668f7b2a62d402c8dc520da45102130ef8e7235 |
--- /dev/null |
+++ b/tools/chrome_remote_control/chrome_remote_control/platform.py |
@@ -0,0 +1,22 @@ |
+# Copyright (c) 2012 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. |
+ |
+class Platform(object): |
+ """The platform that the target browser is running on. |
+ |
+ Provides a limited interface to obtain stats from the platform itself, where |
+ possible. |
+ """ |
+ |
+ def GetSurfaceCollector(self, trace_tag): |
+ """Platforms may be able to collect GL surface stats.""" |
+ class StubSurfaceCollector(object): |
+ def __init__(self, trace_tag): |
+ pass |
+ def __enter__(self): |
+ pass |
+ def __exit__(self, *args): |
+ pass |
+ |
+ return StubSurfaceCollector(trace_tag) |