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

Unified Diff: cc/tile_manager.cc

Issue 11879012: cc: Redraw incomplete frames when new texture uploads finish (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@decouple_draw3b
Patch Set: fix [chromium-style] virtual methods with non-empty bodies shouldn't be declared inline 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') | no next file » | 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 2d7a8a62af105d5e24e7fbb7b8c5399da7bbf580..4482b36eb7429444c830221b8dd60ce4c0acc8b0 100644
--- a/cc/tile_manager.cc
+++ b/cc/tile_manager.cc
@@ -89,7 +89,7 @@ TileManager::~TileManager() {
// This should finish all pending tasks and release any uninitialized
// resources.
raster_worker_pool_.reset();
- CheckForCompletedSetPixels();
+ CheckForCompletedTextures();
DCHECK(tiles_with_pending_set_pixels_.size() == 0);
DCHECK(tiles_.size() == 0);
}
@@ -237,7 +237,7 @@ void TileManager::ManageTiles() {
DispatchMoreTasks();
}
-void TileManager::CheckForCompletedSetPixels() {
+void TileManager::CheckForCompletedTextures() {
while (!tiles_with_pending_set_pixels_.empty()) {
Tile* tile = tiles_with_pending_set_pixels_.front();
DCHECK(tile->managed_state().resource);
@@ -248,6 +248,10 @@ void TileManager::CheckForCompletedSetPixels() {
break;
}
+ if (tile->priority(ACTIVE_TREE).distance_to_visible_in_pixels == 0 &&
+ tile->priority(ACTIVE_TREE).resolution == HIGH_RESOLUTION)
+ client_->DidUploadVisibleHighResolutionTile();
+
// It's now safe to release the pixel buffer.
resource_pool_->resource_provider()->releasePixelBuffer(
tile->managed_state().resource->id());
« no previous file with comments | « cc/tile_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698