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

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

Issue 15736032: Remove old cc-frame-viewer now that it is upstreamed into trace_viewer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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/layer_tree_host_impl.js ('k') | tools/cc-frame-viewer/src/model/tile.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/layer_tree_impl.js
diff --git a/tools/cc-frame-viewer/src/model/layer_tree_impl.js b/tools/cc-frame-viewer/src/model/layer_tree_impl.js
deleted file mode 100644
index e59e1bdb0d67c95a508a32587aa58bb10c29cee7..0000000000000000000000000000000000000000
--- a/tools/cc-frame-viewer/src/model/layer_tree_impl.js
+++ /dev/null
@@ -1,66 +0,0 @@
-/* Copyright (c) 2012 The Chromium Authors. All rights reserved.
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-'use strict';
-
-base.require('base.bbox2');
-base.require('model.constants');
-base.require('model.layer_impl');
-
-base.exportTo('ccfv.model', function() {
-
- /**
- * Represents a cc::LayerTreeImpl
- *
- * @constructor
- */
- function LayerTreeImpl(lthi, which_tree) {
- this.lthi = lthi;
- this.which_tree = which_tree;
- this.tiles_ = [];
- this.allLayers = [];
- this.tileBBox_ = undefined;
- };
-
- LayerTreeImpl.prototype = {
- setTilesDirty: function() {
- this.tiles_ = undefined;
- this.tileBBox_ = undefined;
- },
-
- get tiles() {
- if (!this.tiles_)
- this.tiles_ = this.lthi.getTilesForTree(this.which_tree);
- return this.tiles_;
- },
-
- getOrCreateLayerImpl: function(layerID) {
- var layerHistory = this.lthi.history.getOrCreateLayerImplHistory(layerID);
- var layer = layerHistory.getOrCreateLayerImplForLTHI(this);
- this.allLayers.push(layer);
- return layer;
- },
-
- get tileBBox() {
- if (!this.tileBBox_) {
- var bbox = new base.BBox2();
- for (var i = 0; i < this.tiles.length; i++) {
- var tile = this.tiles[i];
- var priority = tile.priority[this.which_tree];
- if (!priority.current_screen_quad)
- continue;
- bbox.addQuad(priority.current_screen_quad);
- }
- this.tileBBox_ = bbox;
- }
- return this.tileBBox_;
- },
-
- };
-
- return {
- LayerTreeImpl: LayerTreeImpl
- }
-});
-
« no previous file with comments | « tools/cc-frame-viewer/src/model/layer_tree_host_impl.js ('k') | tools/cc-frame-viewer/src/model/tile.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698