OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <!-- | 2 <!-- |
3 Copyright (c) 2015 The Chromium Authors. All rights reserved. | 3 Copyright (c) 2015 The Chromium Authors. All rights reserved. |
4 Use of this source code is governed by a BSD-style license that can be | 4 Use of this source code is governed by a BSD-style license that can be |
5 found in the LICENSE file. | 5 found in the LICENSE file. |
6 --> | 6 --> |
| 7 <link rel="import" href="/tracing/base/range_utils.html"> |
| 8 <link rel="import" href="/tracing/base/sorted_array_utils.html"> |
7 <link rel="import" href="/tracing/base/statistics.html"> | 9 <link rel="import" href="/tracing/base/statistics.html"> |
8 <link rel="import" href="/tracing/base/sorted_array_utils.html"> | |
9 <link rel="import" href="/tracing/model/frame.html"> | 10 <link rel="import" href="/tracing/model/frame.html"> |
10 <link rel="import" href="/tracing/base/range_utils.html"> | |
11 | 11 |
12 <script> | 12 <script> |
13 'use strict'; | 13 'use strict'; |
14 | 14 |
15 /** | 15 /** |
16 * @fileoverview Class for managing android-specific model meta data, | 16 * @fileoverview Class for managing android-specific model meta data, |
17 * such as rendering apps, and frames rendered. | 17 * such as rendering apps, and frames rendered. |
18 */ | 18 */ |
19 tr.exportTo('tr.model.helpers', function() { | 19 tr.exportTo('tr.model.helpers', function() { |
20 var Frame = tr.model.Frame; | 20 var Frame = tr.model.Frame; |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 lastValue = sample.value; | 223 lastValue = sample.value; |
224 }); | 224 }); |
225 return inputSamples; | 225 return inputSamples; |
226 } | 226 } |
227 | 227 |
228 function getAnimationAsyncSlices(uiThread) { | 228 function getAnimationAsyncSlices(uiThread) { |
229 if (!uiThread) | 229 if (!uiThread) |
230 return []; | 230 return []; |
231 | 231 |
232 var slices = []; | 232 var slices = []; |
233 uiThread.asyncSliceGroup.iterateAllEvents(function(slice) { | 233 for (var slice of uiThread.asyncSliceGroup.getDescendantEvents()) { |
234 if (/^animator\:/.test(slice.title)) | 234 if (/^animator\:/.test(slice.title)) |
235 slices.push(slice); | 235 slices.push(slice); |
236 }); | 236 } |
237 return slices; | 237 return slices; |
238 } | 238 } |
239 | 239 |
240 /** | 240 /** |
241 * Model for Android App specific data. | 241 * Model for Android App specific data. |
242 * @constructor | 242 * @constructor |
243 */ | 243 */ |
244 function AndroidApp(process, uiThread, renderThread, surfaceFlinger, | 244 function AndroidApp(process, uiThread, renderThread, surfaceFlinger, |
245 uiDrawType) { | 245 uiDrawType) { |
246 this.process = process; | 246 this.process = process; |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 } | 301 } |
302 return this.animations_; | 302 return this.animations_; |
303 } | 303 } |
304 }; | 304 }; |
305 | 305 |
306 return { | 306 return { |
307 AndroidApp: AndroidApp | 307 AndroidApp: AndroidApp |
308 }; | 308 }; |
309 }); | 309 }); |
310 </script> | 310 </script> |
OLD | NEW |