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

Issue 1035043002: cc: Fix memory limit edge cases for SetIsLikelyToRequireADraw. (Closed)

Created:
5 years, 9 months ago by sunnyps
Modified:
5 years, 9 months ago
Reviewers:
danakj, vmpstr
CC:
chromium-reviews, cc-bugs_chromium.org, boliu, brianderson
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Fix memory limit edge cases for SetIsLikelyToRequireADraw. Whenever TileManager reassigns memory it should call SetIsLikelyToRequireADraw on it's client. This happens when it checks if there are more tiles that need to be rasterized after all raster tasks are done. Furthermore when synchronously rasterizing tiles TileManager should call SetIsLikelyToRequireADraw(false) on it's client. It's necessary to update the client (LayerTreeHostImpl) otherwise it could end up drawing again and again without any real work being done. BUG=439275 Committed: https://crrev.com/1110f019ddad7bc371299384c6c0706708d3295c Cr-Commit-Position: refs/heads/master@{#322637}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Address comments. #

Total comments: 2

Patch Set 3 : Rebase. #

Patch Set 4 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -3 lines) Patch
M cc/resources/tile_manager.h View 1 3 chunks +7 lines, -2 lines 0 comments Download
M cc/resources/tile_manager.cc View 1 2 chunks +11 lines, -0 lines 0 comments Download
M cc/resources/tile_manager_unittest.cc View 1 2 3 3 chunks +57 lines, -1 line 0 comments Download

Messages

Total messages: 12 (3 generated)
sunnyps
PTAL. This is needed for my webview CL: https://codereview.chromium.org/817603002/
5 years, 9 months ago (2015-03-27 00:15:41 UTC) #2
vmpstr
https://codereview.chromium.org/1035043002/diff/1/cc/resources/tile_manager.cc File cc/resources/tile_manager.cc (right): https://codereview.chromium.org/1035043002/diff/1/cc/resources/tile_manager.cc#newcode432 cc/resources/tile_manager.cc:432: client_->SetIsLikelyToRequireADraw(false); Just FYI, this function is kind of slated ...
5 years, 9 months ago (2015-03-27 17:23:28 UTC) #3
sunnyps
Addressed comments. PTAL. https://codereview.chromium.org/1035043002/diff/1/cc/resources/tile_manager.cc File cc/resources/tile_manager.cc (right): https://codereview.chromium.org/1035043002/diff/1/cc/resources/tile_manager.cc#newcode432 cc/resources/tile_manager.cc:432: client_->SetIsLikelyToRequireADraw(false); On 2015/03/27 17:23:28, vmpstr wrote: ...
5 years, 9 months ago (2015-03-27 18:38:04 UTC) #4
vmpstr
lgtm https://codereview.chromium.org/1035043002/diff/20001/cc/resources/tile_manager_unittest.cc File cc/resources/tile_manager_unittest.cc (right): https://codereview.chromium.org/1035043002/diff/20001/cc/resources/tile_manager_unittest.cc#newcode1334 cc/resources/tile_manager_unittest.cc:1334: EXPECT_EQ(queue->Top()->desired_texture_size(), gfx::Size(256, 256)); minor nit: for EXPECT* macros, ...
5 years, 9 months ago (2015-03-27 19:02:27 UTC) #5
danakj
https://codereview.chromium.org/1035043002/diff/20001/cc/resources/tile_manager_unittest.cc File cc/resources/tile_manager_unittest.cc (right): https://codereview.chromium.org/1035043002/diff/20001/cc/resources/tile_manager_unittest.cc#newcode1334 cc/resources/tile_manager_unittest.cc:1334: EXPECT_EQ(queue->Top()->desired_texture_size(), gfx::Size(256, 256)); On 2015/03/27 19:02:27, vmpstr wrote: > ...
5 years, 9 months ago (2015-03-27 19:04:55 UTC) #6
sunnyps
On 2015/03/27 19:02:27, vmpstr wrote: > lgtm > > https://codereview.chromium.org/1035043002/diff/20001/cc/resources/tile_manager_unittest.cc > File cc/resources/tile_manager_unittest.cc (right): > ...
5 years, 9 months ago (2015-03-27 19:09:39 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1035043002/60001
5 years, 9 months ago (2015-03-27 19:26:58 UTC) #10
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 9 months ago (2015-03-27 20:37:21 UTC) #11
commit-bot: I haz the power
5 years, 9 months ago (2015-03-27 20:37:57 UTC) #12
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/1110f019ddad7bc371299384c6c0706708d3295c
Cr-Commit-Position: refs/heads/master@{#322637}

Powered by Google App Engine
This is Rietveld 408576698