Refactoring code with existing function.
this patch is for small refactoring the code by using existing function which has the same purpose. (FreeResourcesForTileAndNotifyClientIfTileWasReadyToDraw) Bug=None TEST=cc_unittests Review URL: https://codereview.chromium.org/471633002 Cr-Commit-Position: refs/heads/master@{#289876} git-svn-id: svn://svn.chromium.org/chrome/trunk/src@289876 0039d316-1c4b-4281-b951-d872f2087c98
This commit is contained in:
@ -843,9 +843,7 @@ void TileManager::AssignGpuMemoryToTiles(
|
||||
|
||||
// Tile is OOM.
|
||||
if (tile_bytes > tile_bytes_left || tile_resources > resources_left) {
|
||||
bool was_ready_to_draw = tile->IsReadyToDraw();
|
||||
|
||||
FreeResourcesForTile(tile);
|
||||
FreeResourcesForTileAndNotifyClientIfTileWasReadyToDraw(tile);
|
||||
|
||||
// This tile was already on screen and now its resources have been
|
||||
// released. In order to prevent checkerboarding, set this tile as
|
||||
@ -853,9 +851,6 @@ void TileManager::AssignGpuMemoryToTiles(
|
||||
if (mts.visible_and_ready_to_draw)
|
||||
tile_version.set_rasterize_on_demand();
|
||||
|
||||
if (was_ready_to_draw)
|
||||
client_->NotifyTileStateChanged(tile);
|
||||
|
||||
oomed_soft = true;
|
||||
if (tile_uses_hard_limit) {
|
||||
oomed_hard = true;
|
||||
|
Reference in New Issue
Block a user