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

Unified Diff: cc/tile.cc

Issue 12084031: A host of micro-optimizations and a refactor of TimeForBoundsToIntersect (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebasing to tip of tree Created 7 years, 11 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 | « cc/tile.h ('k') | cc/tile_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tile.cc
diff --git a/cc/tile.cc b/cc/tile.cc
index 7cb4bec83352281234a5d0c247a323e8aede0c10..bc07dccfa85a6ad0dab561bfb2f6f0b7c9521a88 100644
--- a/cc/tile.cc
+++ b/cc/tile.cc
@@ -28,23 +28,4 @@ Tile::~Tile() {
tile_manager_->UnregisterTile(this);
}
-void Tile::set_priority(WhichTree tree, const TilePriority& priority) {
- tile_manager_->WillModifyTilePriority(this, tree, priority);
- priority_[tree] = priority;
-}
-
-ResourceProvider::ResourceId Tile::GetResourceId() const {
- if (!managed_state_.resource)
- return 0;
- if (managed_state_.resource_is_being_initialized)
- return 0;
-
- return managed_state_.resource->id();
-}
-
-size_t Tile::bytes_consumed_if_allocated() const {
- DCHECK(format_ == GL_RGBA);
- return 4 * tile_size_.width() * tile_size_.height();
-}
-
} // namespace cc
« no previous file with comments | « cc/tile.h ('k') | cc/tile_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698