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

Unified Diff: tools/cc-frame-viewer/src/layer_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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/cc-frame-viewer/src/layer_impl_view.js ('k') | tools/cc-frame-viewer/src/layer_tree_impl_view.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/cc-frame-viewer/src/layer_impl_view_test.html
diff --git a/tools/cc-frame-viewer/src/lthi_view_test.html b/tools/cc-frame-viewer/src/layer_impl_view_test.html
similarity index 54%
copy from tools/cc-frame-viewer/src/lthi_view_test.html
copy to tools/cc-frame-viewer/src/layer_impl_view_test.html
index 8af771233cbfdfc2427ddf73c97c62243ab3165c..b805da9f7b7bbb86d381e45d834e76ac06c3ff54 100644
--- a/tools/cc-frame-viewer/src/lthi_view_test.html
+++ b/tools/cc-frame-viewer/src/layer_impl_view_test.html
@@ -9,27 +9,24 @@ found in the LICENSE file.
<script src="base.js"></script>
<script>
base.require('base.unittest');
- base.require('lthi_view');
+ base.require('layer_impl_view');
base.require('model');
</script>
</head>
<body>
-<script src="../unittest_data/full_trace_but_with_only_one_frame.js"></script>
+<script src="../unittest_data/one_frame_with_layers.js"></script>
<script>
'use strict';
- var Model = ccfv.Model;
-
- function testInstantiate() {
- var model = new Model();
- model.initFromTraceEvents(gFullTraceButWithOnlyOneFrame);
+ function testInstantiateLTIV() {
+ var model = new ccfv.Model();
+ model.initFromFrameData(gOneFrameWithLayers);
var lthiHistory = base.dictionaryValues(model.lthiHistories)[0];
var lthi = lthiHistory.lthiSnapshots[0];
- var lthiView = new ccfv.LTHIView();
- this.addHTMLOutput('LTHI View', lthiView);
- lthiView.lthi = lthi;
- lthiView.style.height = 800;
+ var layerImplView = new ccfv.LayerImplView();
+ this.addHTMLOutput('LTIView', layerImplView);
+ layerImplView.layerImpl = lthi.activeTree.allLayers[0];
}
</script>
</body>
« no previous file with comments | « tools/cc-frame-viewer/src/layer_impl_view.js ('k') | tools/cc-frame-viewer/src/layer_tree_impl_view.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698