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

Unified Diff: cc/tile_manager.cc

Issue 11549038: cc: Fix tile deletion. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years 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 | « no previous file | 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 06b5090ccfcf5407a7a4bfc2ab7641dd42b4d263..f3921df7903764ed3ce93d7f4e3c0aa379dc8554 100644
--- a/cc/tile_manager.cc
+++ b/cc/tile_manager.cc
@@ -170,6 +170,20 @@ void TileManager::RegisterTile(Tile* tile) {
}
void TileManager::UnregisterTile(Tile* tile) {
+ for (TileList::iterator it = tiles_with_image_decoding_tasks_.begin();
+ it != tiles_with_image_decoding_tasks_.end(); it++) {
+ if (*it == tile) {
+ tiles_with_image_decoding_tasks_.erase(it);
+ break;;
+ }
+ }
+ for (TileVector::iterator it = tiles_that_need_to_be_rasterized_.begin();
+ it != tiles_that_need_to_be_rasterized_.end(); it++) {
+ if (*it == tile) {
+ tiles_that_need_to_be_rasterized_.erase(it);
+ break;
+ }
+ }
for (TileVector::iterator it = tiles_.begin(); it != tiles_.end(); it++) {
if (*it == tile) {
FreeResourcesForTile(tile);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698