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

Unified Diff: cc/picture_layer_tiling.cc

Issue 11639050: cc: Support mask layers in impl-side painting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | « cc/picture_layer_impl.cc ('k') | cc/picture_layer_tiling_set.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/picture_layer_tiling.cc
diff --git a/cc/picture_layer_tiling.cc b/cc/picture_layer_tiling.cc
index 62a39b36e07be138b2f342eb1fd08f39e4b943f8..7ea16fd47e6211154fba2603ed6c279ae373b367 100644
--- a/cc/picture_layer_tiling.cc
+++ b/cc/picture_layer_tiling.cc
@@ -283,6 +283,7 @@ void PictureLayerTiling::UpdateTilePriorities(
gfx::Rect view_rect(gfx::Point(), device_viewport);
int right = tiling_data_.TileXIndexFromSrcCoord(content_rect.width() - 1);
int bottom = tiling_data_.TileYIndexFromSrcCoord(content_rect.height() - 1);
+
for (TileMap::const_iterator it = tiles_.begin(); it != tiles_.end(); ++it) {
TileMapKey key = it->first;
TilePriority priority;
@@ -290,7 +291,6 @@ void PictureLayerTiling::UpdateTilePriorities(
priority.distance_to_visible_in_pixels = std::numeric_limits<int>::max();
priority.time_to_visible_in_seconds =
TilePriority::kMaxTimeToVisibleInSeconds;
- // TODO(qinmin): pass the correct tree to this function.
it->second->set_priority(tree, priority);
continue;
}
@@ -312,7 +312,6 @@ void PictureLayerTiling::UpdateTilePriorities(
priority.distance_to_visible_in_pixels =
TilePriority::manhattanDistance(screen_rect, view_rect);
- // TODO(qinmin): pass the correct tree to this function.
it->second->set_priority(tree, priority);
}
}
« no previous file with comments | « cc/picture_layer_impl.cc ('k') | cc/picture_layer_tiling_set.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698