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

Issue 23548022: [cc] Evict UIResources when the renderer is not visible (Closed)

Created:
7 years, 3 months ago by ccameron
Modified:
7 years, 3 months ago
CC:
chromium-reviews, cc-bugs_chromium.org
Visibility:
Public.

Description

[cc] Evict UIResources when the renderer is not visible Track the number of times that UIResources have been evicted on the impl thread. Send this number to the main thread at the beginning of each frame. If the main thread sees this value increase, then recreate all resources and send an acknowledgement of this recreation in the UI resource update queue. Disallow drawing the LayerTreeImpl when it has not received the acknowledgement of the recreation of all evicted UI resources. Disallow aborting commits that will recreate UI resources. BUG=279438 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=222448

Patch Set 1 #

Patch Set 2 : Fix names #

Total comments: 3

Patch Set 3 : Fix RenderTreePriority bug #

Total comments: 5

Patch Set 4 : Use simpler approach #

Patch Set 5 : Fix typos #

Total comments: 3

Patch Set 6 : Fix typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+185 lines, -39 lines) Patch
M cc/trees/layer_tree_host.h View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host.cc View 1 2 3 4 3 chunks +2 lines, -4 lines 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 2 3 4 5 3 chunks +10 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 6 chunks +35 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_context.cc View 1 2 3 4 5 4 chunks +112 lines, -28 lines 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M cc/trees/single_thread_proxy.cc View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M cc/trees/thread_proxy.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/thread_proxy.cc View 1 2 3 4 5 5 chunks +14 lines, -2 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
ccameron
This builds on top of the previous testing-rearrangement change. With this in place, I can ...
7 years, 3 months ago (2013-09-09 09:16:43 UTC) #1
powei
https://codereview.chromium.org/23548022/diff/2001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/23548022/diff/2001/cc/trees/layer_tree_host_impl.cc#newcode2666 cc/trees/layer_tree_host_impl.cc:2666: client_->RenewTreePriority(); Maybe a stupid question, but what's the purpose ...
7 years, 3 months ago (2013-09-09 20:34:25 UTC) #2
ccameron
Thanks! https://codereview.chromium.org/23548022/diff/2001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/23548022/diff/2001/cc/trees/layer_tree_host_impl.cc#newcode2666 cc/trees/layer_tree_host_impl.cc:2666: client_->RenewTreePriority(); On 2013/09/09 20:34:25, powei wrote: > Maybe ...
7 years, 3 months ago (2013-09-09 21:01:16 UTC) #3
aelias_OOO_until_Jul13
https://codereview.chromium.org/23548022/diff/7001/cc/trees/layer_tree_host.h File cc/trees/layer_tree_host.h (right): https://codereview.chromium.org/23548022/diff/7001/cc/trees/layer_tree_host.h#newcode93 cc/trees/layer_tree_host.h:93: UIResourceEvictionRecreated, Why is it necessary to track this in ...
7 years, 3 months ago (2013-09-09 22:52:37 UTC) #4
ccameron
Thanks!! I do feel quite strongly about the structure that I chose here. Hopefully I've ...
7 years, 3 months ago (2013-09-09 23:22:04 UTC) #5
aelias_OOO_until_Jul13
https://codereview.chromium.org/23548022/diff/7001/cc/trees/layer_tree_host.h File cc/trees/layer_tree_host.h (right): https://codereview.chromium.org/23548022/diff/7001/cc/trees/layer_tree_host.h#newcode341 cc/trees/layer_tree_host.h:341: uint64 ui_resource_eviction_count_recreated_; I agree with your reasoning that a ...
7 years, 3 months ago (2013-09-09 23:44:30 UTC) #6
ccameron
On 2013/09/09 23:44:30, aelias wrote: > What about my other > suggestion, to store a ...
7 years, 3 months ago (2013-09-10 00:10:51 UTC) #7
aelias_OOO_until_Jul13
Sorry but I think this sequence number is the sort of concept that is crystal ...
7 years, 3 months ago (2013-09-10 00:43:41 UTC) #8
ccameron
On 2013/09/10 00:43:41, aelias wrote: > Sorry but I think this sequence number is the ...
7 years, 3 months ago (2013-09-10 19:47:07 UTC) #9
aelias_OOO_until_Jul13
Thanks! https://chromiumcodereview.appspot.com/23548022/diff/20001/cc/trees/thread_proxy.cc File cc/trees/thread_proxy.cc (right): https://chromiumcodereview.appspot.com/23548022/diff/20001/cc/trees/thread_proxy.cc#newcode770 cc/trees/thread_proxy.cc:770: // Recreate all UI resources if there were ...
7 years, 3 months ago (2013-09-10 20:02:32 UTC) #10
ccameron
https://chromiumcodereview.appspot.com/23548022/diff/20001/cc/trees/thread_proxy.cc File cc/trees/thread_proxy.cc (right): https://chromiumcodereview.appspot.com/23548022/diff/20001/cc/trees/thread_proxy.cc#newcode770 cc/trees/thread_proxy.cc:770: // Recreate all UI resources if there were evicted ...
7 years, 3 months ago (2013-09-10 21:27:49 UTC) #11
aelias_OOO_until_Jul13
Sounds reasonable, lgtm.
7 years, 3 months ago (2013-09-10 21:39:17 UTC) #12
powei
Just a quick typo before you land this. lgtm. https://chromiumcodereview.appspot.com/23548022/diff/20001/cc/trees/layer_tree_impl.cc File cc/trees/layer_tree_impl.cc (right): https://chromiumcodereview.appspot.com/23548022/diff/20001/cc/trees/layer_tree_impl.cc#newcode633 cc/trees/layer_tree_impl.cc:633: ...
7 years, 3 months ago (2013-09-10 21:50:51 UTC) #13
ccameron
Thanks!!
7 years, 3 months ago (2013-09-10 22:06:14 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ccameron@chromium.org/23548022/26001
7 years, 3 months ago (2013-09-10 22:08:44 UTC) #15
commit-bot: I haz the power
7 years, 3 months ago (2013-09-11 01:44:49 UTC) #16
Message was sent while issue was closed.
Change committed as 222448

Powered by Google App Engine
This is Rietveld 408576698