| Index: cc/tiles/tile_manager.cc
|
| diff --git a/cc/tiles/tile_manager.cc b/cc/tiles/tile_manager.cc
|
| index cf6981e71975b1ed0ca7d30bc93637e394f9287f..e110fc2a29e81872e1089c398602cdd1e122378c 100644
|
| --- a/cc/tiles/tile_manager.cc
|
| +++ b/cc/tiles/tile_manager.cc
|
| @@ -974,7 +974,9 @@ TileManager::MemoryUsage::MemoryUsage(int64 memory_bytes, int resource_count)
|
| TileManager::MemoryUsage TileManager::MemoryUsage::FromConfig(
|
| const gfx::Size& size,
|
| ResourceFormat format) {
|
| - return MemoryUsage(Resource::MemorySizeBytes(size, format), 1);
|
| + // We can use UncheckedMemorySizeBytes here since this is used with a tile
|
| + // size which is determined by the compositor (it's at most max texture size).
|
| + return MemoryUsage(Resource::UncheckedMemorySizeBytes(size, format), 1);
|
| }
|
|
|
| // static
|
|
|