| 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 import os | 5 import os | 
| 6 import sys | 6 import sys | 
| 7 | 7 | 
| 8 # Get build/android scripts into our path. | 8 # Get build/android scripts into our path. | 
| 9 sys.path.append( | 9 sys.path.append( | 
| 10     os.path.abspath( | 10     os.path.abspath( | 
| 11         os.path.join(os.path.dirname(__file__), | 11         os.path.join(os.path.dirname(__file__), | 
| 12                      '../../../build/android'))) | 12                      '../../../build/android'))) | 
| 13 try: | 13 try: | 
| 14   from pylib import surface_stats_collector # pylint: disable=F0401 | 14   from pylib import surface_stats_collector # pylint: disable=F0401 | 
| 15 except Exception: | 15 except Exception: | 
| 16   surface_stats_collector = None | 16   surface_stats_collector = None | 
| 17 | 17 | 
| 18 | 18 | 
| 19 class AndroidPlatform(object): | 19 class AndroidPlatform(object): | 
| 20   def __init__(self, adb, window_package, window_activity): | 20   def __init__(self, adb, window_package, window_activity): | 
| 21     super(AndroidPlatform, self).__init__() | 21     super(AndroidPlatform, self).__init__() | 
| 22     self._adb = adb | 22     self._adb = adb | 
| 23     self._window_package = window_package | 23     self._window_package = window_package | 
| 24     self._window_activity = window_activity | 24     self._window_activity = window_activity | 
| 25 | 25 | 
| 26   def GetSurfaceCollector(self, trace_tag): | 26   def GetSurfaceCollector(self, trace_tag): | 
| 27     return surface_stats_collector.SurfaceStatsCollector( | 27     return surface_stats_collector.SurfaceStatsCollector( | 
| 28         self._adb, self._window_package, self._window_activity, trace_tag) | 28         self._adb, self._window_package, self._window_activity, trace_tag) | 
| OLD | NEW | 
|---|