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

Unified Diff: cc/resources/tile_manager.cc

Issue 12642010: Implement on demand quad rasterization for PicturePiles. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit fixes. Created 7 years, 9 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/resources/managed_tile_state.cc ('k') | cc/trees/layer_tree_host_pixeltest_on_demand_raster.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/tile_manager.cc
diff --git a/cc/resources/tile_manager.cc b/cc/resources/tile_manager.cc
index dce46b4cce63a930c8adf4215a5117919b439a1a..26ed042b7aa61bb1660b3fb73ddfce54eeb527fb 100644
--- a/cc/resources/tile_manager.cc
+++ b/cc/resources/tile_manager.cc
@@ -592,8 +592,12 @@ void TileManager::AssignGpuMemoryToTiles() {
mts.bin[LOW_PRIORITY_BIN] == NOW_BIN)
bytes_that_exceeded_memory_budget_in_now_bin += tile_bytes;
FreeResourcesForTile(tile);
+ tile->drawing_info().set_rasterize_on_demand();
+ tile->drawing_info().set_contents_swizzled(
+ !PlatformColor::SameComponentOrder(tile->format_));
reveman 2013/03/26 18:32:53 nit: indent 4 spaces here
Leandro GraciĆ” Gil 2013/03/26 18:35:47 Done.
continue;
}
+ tile->drawing_info().set_use_resource();
bytes_left -= tile_bytes;
mts.can_use_gpu_memory = true;
if (!tile->drawing_info().resource_ &&
« no previous file with comments | « cc/resources/managed_tile_state.cc ('k') | cc/trees/layer_tree_host_pixeltest_on_demand_raster.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698