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

Side by Side Diff: tools/cc-frame-viewer/src/layer_tree_impl_view_test.html

Issue 12287014: [cc-frame-viewer] Show layers and levels of detail (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 10 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE HTML> 1 <!DOCTYPE HTML>
2 <html> 2 <html>
3 <!-- 3 <!--
4 Copyright (c) 2012 The Chromium Authors. All rights reserved. 4 Copyright (c) 2012 The Chromium Authors. All rights reserved.
5 Use of this source code is governed by a BSD-style license that can be 5 Use of this source code is governed by a BSD-style license that can be
6 found in the LICENSE file. 6 found in the LICENSE file.
7 --> 7 -->
8 <head> 8 <head>
9 <script src="base.js"></script> 9 <script src="base.js"></script>
10 <script> 10 <script>
11 base.require('base.unittest'); 11 base.require('base.unittest');
12 base.require('lthi_view'); 12 base.require('layer_tree_impl_view');
13 base.require('model'); 13 base.require('model');
14 </script> 14 </script>
15 </head> 15 </head>
16 <body> 16 <body>
17 <script src="../unittest_data/full_trace_but_with_only_one_frame.js"></script> 17 <script src="../unittest_data/one_frame_with_layers.js"></script>
18 <script> 18 <script>
19 'use strict'; 19 'use strict';
20 20
21 var Model = ccfv.Model; 21 function testInstantiateLTIV() {
22 22 var model = new ccfv.Model();
23 function testInstantiate() { 23 model.initFromFrameData(gOneFrameWithLayers);
24 var model = new Model();
25 model.initFromTraceEvents(gFullTraceButWithOnlyOneFrame);
26 var lthiHistory = base.dictionaryValues(model.lthiHistories)[0]; 24 var lthiHistory = base.dictionaryValues(model.lthiHistories)[0];
27 var lthi = lthiHistory.lthiSnapshots[0]; 25 var lthi = lthiHistory.lthiSnapshots[0];
28 26
29 var lthiView = new ccfv.LTHIView(); 27 var ltiView = new ccfv.LayerTreeImplView();
30 this.addHTMLOutput('LTHI View', lthiView); 28 this.addHTMLOutput('LTIView', ltiView);
31 lthiView.lthi = lthi; 29 ltiView.layerTreeImpl = lthi.activeTree;
32 lthiView.style.height = 800;
33 } 30 }
34 </script> 31 </script>
35 </body> 32 </body>
36 </html> 33 </html>
OLDNEW
« no previous file with comments | « tools/cc-frame-viewer/src/layer_tree_impl_view.js ('k') | tools/cc-frame-viewer/src/lthi_view.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698