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

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: merged to tip of tree and refactored TilePriority::TimeForBoundsToIntersect 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
Index: cc/tile_manager.cc
diff --git a/cc/tile_manager.cc b/cc/tile_manager.cc
index de7bf0d816e7929e8f8d49279bb82148879d829a..277f4cb656cb51a0cebb076dc412ae761d6fc095 100644
--- a/cc/tile_manager.cc
+++ b/cc/tile_manager.cc
@@ -34,7 +34,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) {
// The amount of time for which we want to have prepainting coverage.
const double prepainting_window_time_seconds = 1.0;
@@ -195,20 +195,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 {

Powered by Google App Engine
This is Rietveld 408576698