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

Unified Diff: cc/tile_manager.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_manager.h ('k') | cc/tile_priority.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tile_manager.cc
diff --git a/cc/tile_manager.cc b/cc/tile_manager.cc
index 612e39dcb3c87cbc9782a9176d6552e3ad78678f..dd514fc46373b8b9974d8b9c64435c0369712110 100644
--- a/cc/tile_manager.cc
+++ b/cc/tile_manager.cc
@@ -35,7 +35,7 @@ const int kMaxPendingUploadBytes = 100 * 1024 * 1024;
// Determine bin based on three categories of tiles: things we need now,
// things we need soon, and eventually.
-TileManagerBin BinFromTilePriority(const TilePriority& prio) {
+inline TileManagerBin BinFromTilePriority(const TilePriority& prio) {
if (!prio.is_live)
return NEVER_BIN;
@@ -188,20 +188,6 @@ void TileManager::UnregisterTile(Tile* tile) {
DCHECK(false) << "Could not find tile version.";
}
-void TileManager::WillModifyTilePriority(
- Tile* tile, WhichTree tree, const TilePriority& new_priority) {
- // TODO(nduca): Do something smarter if reprioritization turns out to be
- // costly.
- ScheduleManageTiles();
-}
-
-void TileManager::ScheduleManageTiles() {
- if (manage_tiles_pending_)
- return;
- client_->ScheduleManageTiles();
- manage_tiles_pending_ = true;
-}
-
class BinComparator {
public:
bool operator() (const Tile* a, const Tile* b) const {
« no previous file with comments | « cc/tile_manager.h ('k') | cc/tile_priority.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698