Descriptioncc: Prevent the tile manager from allocating more memory than allowed.
This adds a new ReduceMemoryUsage function to the resource pool. By
calling this function in TileManager::ScheduleTasks after creating
all resources needed to to call RasterWorkerPool::ScheduleTasks
we free enough unused resources to ensure that we never go above
the limit.
This also fixes the use of the num_resources_limit by correctly
accounting for all allocated resources.
BUG=273140
TEST=cc_unittests --gtest_filter=TileManagerTests/TileManagerTest.RespectMemoryLimit*
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=217951
Patch Set 1 #
Total comments: 2
Patch Set 2 : s/resources_/unused_resources_/ #
Total comments: 4
Patch Set 3 : s/MemoryUsage/ResourceUsage/ #Patch Set 4 : rebase #
Messages
Total messages: 10 (0 generated)
|