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

Side by Side Diff: tools/cc-frame-viewer/src/model_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
« no previous file with comments | « tools/cc-frame-viewer/src/model_view.css ('k') | tools/cc-frame-viewer/src/quad_view.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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('model_view'); 12 base.require('model_view');
13 </script> 13 </script>
14 </head> 14 </head>
15 <body> 15 <body>
16 <script src="../unittest_data/full_trace_but_with_only_two_frames.js"></script> 16 <script src="../unittest_data/full_trace_but_with_only_two_frames.js"></script>
17 <script src="../unittest_data/one_frame_with_layers.js"></script>
17 <script> 18 <script>
18 'use strict'; 19 'use strict';
19 20
20 var Model = ccfv.Model; 21 var Model = ccfv.Model;
21 var ModelView = ccfv.ModelView; 22 var ModelView = ccfv.ModelView;
22 23
23 function testInstantiate() { 24 function testTwoFramesAndTiles() {
24 var model = new Model(); 25 var model = new Model();
25 model.initFromTraceEvents(gFullTraceButWithOnlyTwoFrames); 26 model.initFromTraceEvents(gFullTraceButWithOnlyTwoFrames);
26 var modelView = new ModelView(); 27 var modelView = new ModelView();
27 this.addHTMLOutput('Model View', modelView); 28 this.addHTMLOutput('Model Tiles', modelView);
28 modelView.model = model; 29 modelView.model = model;
29 modelView.style.height = '600px'; 30 modelView.style.height = '600px';
30 } 31 }
32
33 function testLayers() {
34 var model = new Model();
35 model.initFromFrameData(gOneFrameWithLayers);
36 var modelView = new ModelView();
37 this.addHTMLOutput('Model with Layers', modelView);
38 modelView.model = model;
39 modelView.style.height = '600px';
40 }
31 </script> 41 </script>
32 </body> 42 </body>
33 </html> 43 </html>
OLDNEW
« no previous file with comments | « tools/cc-frame-viewer/src/model_view.css ('k') | tools/cc-frame-viewer/src/quad_view.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698