OLD | NEW |
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 Queue | 5 import Queue |
6 import threading | 6 import threading |
7 | 7 |
8 | 8 |
9 # Log marker containing SurfaceTexture timestamps. | 9 # Log marker containing SurfaceTexture timestamps. |
10 _SURFACE_TEXTURE_TIMESTAMPS_MESSAGE = 'SurfaceTexture update timestamps' | 10 _SURFACE_TEXTURE_TIMESTAMPS_MESSAGE = 'SurfaceTexture update timestamps' |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 fields = line.split() | 174 fields = line.split() |
175 if len(fields) != 3: | 175 if len(fields) != 3: |
176 continue | 176 continue |
177 timestamp = long(fields[1]) | 177 timestamp = long(fields[1]) |
178 if timestamp == pending_fence_timestamp: | 178 if timestamp == pending_fence_timestamp: |
179 continue | 179 continue |
180 timestamp /= nanoseconds_per_millisecond | 180 timestamp /= nanoseconds_per_millisecond |
181 timestamps.append(timestamp) | 181 timestamps.append(timestamp) |
182 | 182 |
183 return (refresh_period, timestamps) | 183 return (refresh_period, timestamps) |
OLD | NEW |