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

Issue 594703002: cc: Don't activate rasterize on demand when we have 0 memory. (Closed)

Created:
6 years, 3 months ago by vmpstr
Modified:
6 years, 3 months ago
Reviewers:
danakj, reveman
CC:
chromium-reviews, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

cc: Don't activate rasterize on demand when we have 0 memory. This patch partially fixes checkerboard on rapid tab switch problem. When we become invisible we mark the active tree as requiring high res content to draw, and manage tiles to evict resources. However, manage tiles will end up scheduling an activation with rasterize on demand since we couldn't schedule anything. This will end up activating and clearing the require high res flag. This fixes it by not activating or scheduling activation when we have no memory. R=reveman BUG=415760 Committed: https://crrev.com/23da7a6a68df0c0a0676b763cc84451d94cd9028 Cr-Commit-Position: refs/heads/master@{#296315}

Patch Set 1 #

Total comments: 4

Patch Set 2 : use allow_nothing #

Total comments: 1

Patch Set 3 : +test #

Patch Set 4 : #

Total comments: 10

Patch Set 5 : update #

Total comments: 2

Patch Set 6 : update #

Total comments: 4

Patch Set 7 : update #

Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -3 lines) Patch
M cc/resources/tile_manager.h View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
M cc/resources/tile_manager.cc View 1 3 1 chunk +5 lines, -1 line 0 comments Download
M cc/resources/tile_priority.h View 1 2 chunks +1 line, -2 lines 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 2 3 4 5 6 1 chunk +84 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (2 generated)
vmpstr
Please take a look. We could also just return if we have 0 memory, but ...
6 years, 3 months ago (2014-09-22 23:49:07 UTC) #1
reveman
https://codereview.chromium.org/594703002/diff/1/cc/resources/tile_manager.cc File cc/resources/tile_manager.cc (right): https://codereview.chromium.org/594703002/diff/1/cc/resources/tile_manager.cc#newcode515 cc/resources/tile_manager.cc:515: // invisible), if we have tiles that aren't ready, ...
6 years, 3 months ago (2014-09-23 02:38:54 UTC) #2
vmpstr
https://codereview.chromium.org/594703002/diff/1/cc/resources/tile_manager.cc File cc/resources/tile_manager.cc (right): https://codereview.chromium.org/594703002/diff/1/cc/resources/tile_manager.cc#newcode515 cc/resources/tile_manager.cc:515: // invisible), if we have tiles that aren't ready, ...
6 years, 3 months ago (2014-09-23 15:29:23 UTC) #3
reveman
https://codereview.chromium.org/594703002/diff/1/cc/resources/tile_manager.cc File cc/resources/tile_manager.cc (right): https://codereview.chromium.org/594703002/diff/1/cc/resources/tile_manager.cc#newcode515 cc/resources/tile_manager.cc:515: // invisible), if we have tiles that aren't ready, ...
6 years, 3 months ago (2014-09-23 16:39:11 UTC) #4
vmpstr
PTAL. I'll work on a test. https://codereview.chromium.org/594703002/diff/1/cc/resources/tile_manager.cc File cc/resources/tile_manager.cc (right): https://codereview.chromium.org/594703002/diff/1/cc/resources/tile_manager.cc#newcode515 cc/resources/tile_manager.cc:515: // invisible), if ...
6 years, 3 months ago (2014-09-23 17:25:32 UTC) #5
reveman
lgtm after adding a test
6 years, 3 months ago (2014-09-23 18:47:24 UTC) #6
danakj
Thanks for the test! It looks great, with a couple comments. https://codereview.chromium.org/594703002/diff/60001/cc/trees/layer_tree_host_unittest.cc File cc/trees/layer_tree_host_unittest.cc (right): ...
6 years, 3 months ago (2014-09-23 20:55:29 UTC) #8
vmpstr
https://codereview.chromium.org/594703002/diff/60001/cc/trees/layer_tree_host_unittest.cc File cc/trees/layer_tree_host_unittest.cc (right): https://codereview.chromium.org/594703002/diff/60001/cc/trees/layer_tree_host_unittest.cc#newcode5047 cc/trees/layer_tree_host_unittest.cc:5047: layer_tree_host()->SetViewportSize(gfx::Size(1000, 1000)); On 2014/09/23 20:55:29, danakj wrote: > the ...
6 years, 3 months ago (2014-09-23 21:39:32 UTC) #9
danakj
https://codereview.chromium.org/594703002/diff/80001/cc/trees/layer_tree_host_unittest.cc File cc/trees/layer_tree_host_unittest.cc (right): https://codereview.chromium.org/594703002/diff/80001/cc/trees/layer_tree_host_unittest.cc#newcode5055 cc/trees/layer_tree_host_unittest.cc:5055: virtual void DidCommit() OVERRIDE { layer_tree_host()->SetVisible(false); } i really ...
6 years, 3 months ago (2014-09-23 21:42:10 UTC) #10
vmpstr
ptal https://codereview.chromium.org/594703002/diff/80001/cc/trees/layer_tree_host_unittest.cc File cc/trees/layer_tree_host_unittest.cc (right): https://codereview.chromium.org/594703002/diff/80001/cc/trees/layer_tree_host_unittest.cc#newcode5055 cc/trees/layer_tree_host_unittest.cc:5055: virtual void DidCommit() OVERRIDE { layer_tree_host()->SetVisible(false); } On ...
6 years, 3 months ago (2014-09-23 22:31:50 UTC) #11
danakj
LGTM https://codereview.chromium.org/594703002/diff/100001/cc/trees/layer_tree_host_unittest.cc File cc/trees/layer_tree_host_unittest.cc (right): https://codereview.chromium.org/594703002/diff/100001/cc/trees/layer_tree_host_unittest.cc#newcode5055 cc/trees/layer_tree_host_unittest.cc:5055: virtual void DidCommit() OVERRIDE { layer_tree_host()->SetVisible(false); } nit: ...
6 years, 3 months ago (2014-09-23 22:45:10 UTC) #12
vmpstr
https://codereview.chromium.org/594703002/diff/100001/cc/trees/layer_tree_host_unittest.cc File cc/trees/layer_tree_host_unittest.cc (right): https://codereview.chromium.org/594703002/diff/100001/cc/trees/layer_tree_host_unittest.cc#newcode5055 cc/trees/layer_tree_host_unittest.cc:5055: virtual void DidCommit() OVERRIDE { layer_tree_host()->SetVisible(false); } On 2014/09/23 ...
6 years, 3 months ago (2014-09-23 22:53:33 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/594703002/120001
6 years, 3 months ago (2014-09-23 22:54:19 UTC) #15
commit-bot: I haz the power
Committed patchset #7 (id:120001) as fc1338fa29fb678d141777235886faa45d737320
6 years, 3 months ago (2014-09-24 00:24:55 UTC) #16
commit-bot: I haz the power
6 years, 3 months ago (2014-09-24 00:25:28 UTC) #17
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/23da7a6a68df0c0a0676b763cc84451d94cd9028
Cr-Commit-Position: refs/heads/master@{#296315}

Powered by Google App Engine
This is Rietveld 408576698