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

Side by Side Diff: tracing/tracing/model/helpers/android_app.html

Issue 2162963002: [polymer] Merge of master into polymer10-migration (Closed) Base URL: git@github.com:catapult-project/catapult.git@polymer10-migration
Patch Set: Merge polymer10-migration int polymer10-merge Created 4 years, 5 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 unified diff | Download patch
OLDNEW
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
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
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>
OLDNEW
« no previous file with comments | « tracing/tracing/model/global_memory_dump_test.html ('k') | tracing/tracing/model/helpers/chrome_browser_helper.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698