summaryrefslogtreecommitdiffstats
path: root/cc/resources/picture_layer_tiling.cc
diff options
context:
space:
mode:
Diffstat (limited to 'cc/resources/picture_layer_tiling.cc')
-rw-r--r--cc/resources/picture_layer_tiling.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/cc/resources/picture_layer_tiling.cc b/cc/resources/picture_layer_tiling.cc
index 4394e79..90ac60f 100644
--- a/cc/resources/picture_layer_tiling.cc
+++ b/cc/resources/picture_layer_tiling.cc
@@ -497,7 +497,10 @@ size_t PictureLayerTiling::GPUMemoryUsageInBytes() const {
size_t amount = 0;
for (TileMap::const_iterator it = tiles_.begin(); it != tiles_.end(); ++it) {
const Tile* tile = it->second.get();
- amount += tile->tile_version().GPUMemoryUsageInBytes();
+ for (int mode = 0; mode < NUM_RASTER_MODES; ++mode) {
+ amount += tile->tile_version(
+ static_cast<TileRasterMode>(mode)).GPUMemoryUsageInBytes();
+ }
}
return amount;
}