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

Issue 11886091: cc: Fix resource eviction with impl-side painting. (Closed)

Created:
7 years, 11 months ago by reveman
Modified:
7 years, 11 months ago
Reviewers:
ccameron, nduca, enne (OOO)
CC:
chromium-reviews, cc-bugs_chromium.org
Visibility:
Public.

Description

cc: Fix resource eviction with impl-side painting. When evicting resources with impl-side painting we need wait until the active tree is without evicted resources before we can draw. This moves the ContentsTexturesPurged state from LTHI to the LTI and makes LTHI::canDraw() return false when the active LTI has ContentsTexturesPurged set. The result is no change in behavior when we only have one tree, while with impl-side painting when we have two trees, canDraw() will not return true until the new tree without ContentsTexturesPurged set has been activated. BUG=170157 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=177532

Patch Set 1 #

Total comments: 3

Patch Set 2 : Fix enforceManagedMemoryPolicy. It's possible we have pending tree when this is called. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -35 lines) Patch
M cc/layer_tree_host.cc View 2 chunks +9 lines, -0 lines 0 comments Download
M cc/layer_tree_host_impl.h View 2 chunks +0 lines, -4 lines 0 comments Download
M cc/layer_tree_host_impl.cc View 1 4 chunks +4 lines, -15 lines 0 comments Download
M cc/layer_tree_host_impl_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/layer_tree_impl.h View 2 chunks +6 lines, -0 lines 0 comments Download
M cc/layer_tree_impl.cc View 2 chunks +16 lines, -1 line 0 comments Download
M cc/single_thread_proxy.cc View 3 chunks +2 lines, -4 lines 0 comments Download
M cc/thread_proxy.cc View 1 chunk +0 lines, -10 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
reveman
7 years, 11 months ago (2013-01-17 08:50:24 UTC) #1
nduca
Can you explain why "we need to wait until the active tree is without evicted ...
7 years, 11 months ago (2013-01-17 09:08:11 UTC) #2
reveman
On 2013/01/17 09:08:11, nduca wrote: > Can you explain why "we need to wait until ...
7 years, 11 months ago (2013-01-17 16:48:50 UTC) #3
enne (OOO)
I wonder if the tree activation function needs to take this into account so that ...
7 years, 11 months ago (2013-01-17 17:31:14 UTC) #4
reveman
I don't think we want to change pending tree activation. Activating it before visible tiles ...
7 years, 11 months ago (2013-01-17 18:49:49 UTC) #5
enne (OOO)
On 2013/01/17 18:49:49, David Reveman wrote: > I don't think we want to change pending ...
7 years, 11 months ago (2013-01-17 18:57:17 UTC) #6
enne (OOO)
lgtm
7 years, 11 months ago (2013-01-17 19:01:19 UTC) #7
ccameron
Very nice, lgtm as well. Would have made sense to attach this data to the ...
7 years, 11 months ago (2013-01-17 19:10:31 UTC) #8
nduca
lgtm on basis of these fine individuals liking it :)
7 years, 11 months ago (2013-01-17 19:14:40 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/11886091/1
7 years, 11 months ago (2013-01-17 19:45:06 UTC) #10
enne (OOO)
Patchset2 also lgtm. Good catch.
7 years, 11 months ago (2013-01-17 20:34:34 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/11886091/21001
7 years, 11 months ago (2013-01-17 20:37:11 UTC) #12
commit-bot: I haz the power
7 years, 11 months ago (2013-01-17 23:42:02 UTC) #13
Message was sent while issue was closed.
Change committed as 177532

Powered by Google App Engine
This is Rietveld 408576698