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

Unified Diff: tools/cc-frame-viewer/src/lthi_view.js

Issue 12260030: [cc-frame-viewer] Panoply of fixes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more fixes 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/app/viewer.js ('k') | tools/cc-frame-viewer/src/model.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/cc-frame-viewer/src/lthi_view.js
diff --git a/tools/cc-frame-viewer/src/lthi_view.js b/tools/cc-frame-viewer/src/lthi_view.js
index 1bbb322380fcb41966f31d0f22903ddff144a113..286460876a7e8d64d230087de1df90f2028d6277 100644
--- a/tools/cc-frame-viewer/src/lthi_view.js
+++ b/tools/cc-frame-viewer/src/lthi_view.js
@@ -52,6 +52,11 @@ base.exportTo('ccfv', function() {
optionsEl.appendChild(ui.createSpan('Scale:'));
optionsEl.appendChild(this.scaleSelector_);
+ this.headerTextEl_ = document.createElement('span');
+ optionsEl.appendChild(ui.createSpan('Details:'));
+ optionsEl.appendChild(this.headerTextEl_);
+
+
this.activeTreeQuadView_ = new TreeQuadView();
this.pendingTreeQuadView_ = new TreeQuadView();
this.inactiveTileView_ = new InactiveTileView();
@@ -101,14 +106,11 @@ base.exportTo('ccfv', function() {
return;
}
- var bbox = new base.BBox2();
- bbox.addBBox2(lthi.pendingTree.tileBBox);
- bbox.addBBox2(lthi.activeTree.tileBBox);
-
+ var bbox = lthi.history.allTilesBBox;
if (!this.viewport_) {
if (!bbox.isEmpty) {
this.viewport_ = new ccfv.QuadViewViewport(
- lthi.history.allTilesBBox);
+ bbox);
this.viewport_.scale = this.scaleSelector_.selectedOptions[0].scale;
this.activeTreeQuadView_.viewport = this.viewport_;
this.pendingTreeQuadView_.viewport = this.viewport_;
@@ -117,9 +119,6 @@ base.exportTo('ccfv', function() {
}
}
- this.activeTreeQuadView_.viewport.setWorldBBox(bbox);
- this.pendingTreeQuadView_.viewport.setWorldBBox(bbox);
-
this.activeTreeQuadView_.which_tree = lthi.activeTree.which_tree;
this.activeTreeQuadView_.tiles = lthi.activeTree.tiles;
this.activeTreeQuadView_.headerText =
@@ -134,6 +133,8 @@ base.exportTo('ccfv', function() {
this.pendingTreeQuadView_.deviceViewportSizeForFrame =
lthi.deviceViewportSize;
+ this.headerTextEl_.textContent = lthi.inactiveTiles.length +
+ ' inactive tiles';
this.inactiveTileView_.tiles = lthi.inactiveTiles;
},
« no previous file with comments | « tools/cc-frame-viewer/app/viewer.js ('k') | tools/cc-frame-viewer/src/model.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698