Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Unified Diff: tools/chrome_remote_control/chrome_remote_control/platform.py

Issue 11187036: Android: start upstreaming some of our perf tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Revert adb_commands Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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)

Powered by Google App Engine
This is Rietveld 408576698