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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/cc-frame-viewer/src/model_view_test.html
diff --git a/tools/cc-frame-viewer/src/model_view_test.html b/tools/cc-frame-viewer/src/model_view_test.html
index 9eb19fb8dc4ff9e97618b5834a9a2eda6534c9b6..4888be964c6870cc64b76e69b77379d2982d7587 100644
--- a/tools/cc-frame-viewer/src/model_view_test.html
+++ b/tools/cc-frame-viewer/src/model_view_test.html
@@ -14,17 +14,27 @@ found in the LICENSE file.
</head>
<body>
<script src="../unittest_data/full_trace_but_with_only_two_frames.js"></script>
+<script src="../unittest_data/one_frame_with_layers.js"></script>
<script>
'use strict';
var Model = ccfv.Model;
var ModelView = ccfv.ModelView;
- function testInstantiate() {
+ function testTwoFramesAndTiles() {
var model = new Model();
model.initFromTraceEvents(gFullTraceButWithOnlyTwoFrames);
var modelView = new ModelView();
- this.addHTMLOutput('Model View', modelView);
+ this.addHTMLOutput('Model Tiles', modelView);
+ modelView.model = model;
+ modelView.style.height = '600px';
+ }
+
+ function testLayers() {
+ var model = new Model();
+ model.initFromFrameData(gOneFrameWithLayers);
+ var modelView = new ModelView();
+ this.addHTMLOutput('Model with Layers', modelView);
modelView.model = model;
modelView.style.height = '600px';
}
« 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