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

Issue 935193002: cc: Fix missing render surfaces with output requests (Closed)

Created:
5 years, 10 months ago by enne (OOO)
Modified:
5 years, 10 months ago
Reviewers:
danakj, Ian Vollick
CC:
awoloszyn, cc-bugs_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Fix missing render surfaces with output requests The main thread calculates needed render surfaces, but doesn't have all of the information that it needs. In particular, it may not know that one of its twin layers on the pending or active tree still has an unserviced copy output request that will live through the commit and activation, and thus that twin will still need a render surface. As render surface calculations will probably move to the compositor thread, rather than adding in complicated tracking and counting of outstanding copy requests to Layer and request callbacks, instead just add some logic to check if there are remaining copy output requests during commit and activation and take that into consideration when setting the output surface. This also reverts commit 1e447ad6426b03803cf6cf091ffc8edede265e71, which was clearly legit as it caught this mistake. BUG=457217 Committed: https://crrev.com/b723b4e24b5160aee2db354084b7ccc6a709fbec Cr-Commit-Position: refs/heads/master@{#317107}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Remove asserts #

Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -5 lines) Patch
M cc/layers/layer.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/layers/layer_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/layer_tree_host_common.cc View 1 chunk +18 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 1 chunk +79 lines, -0 lines 0 comments Download
M cc/trees/thread_proxy.cc View 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 14 (5 generated)
enne (OOO)
5 years, 10 months ago (2015-02-19 01:51:21 UTC) #2
danakj
LGTM https://codereview.chromium.org/935193002/diff/1/cc/trees/layer_tree_host_unittest.cc File cc/trees/layer_tree_host_unittest.cc (right): https://codereview.chromium.org/935193002/diff/1/cc/trees/layer_tree_host_unittest.cc#newcode6354 cc/trees/layer_tree_host_unittest.cc:6354: ASSERT_TRUE(child_impl); ASSERT_ in layer tree tests is marginally ...
5 years, 10 months ago (2015-02-19 18:08:40 UTC) #3
enne (OOO)
https://codereview.chromium.org/935193002/diff/1/cc/trees/layer_tree_host_unittest.cc File cc/trees/layer_tree_host_unittest.cc (right): https://codereview.chromium.org/935193002/diff/1/cc/trees/layer_tree_host_unittest.cc#newcode6354 cc/trees/layer_tree_host_unittest.cc:6354: ASSERT_TRUE(child_impl); On 2015/02/19 18:08:39, danakj wrote: > ASSERT_ in ...
5 years, 10 months ago (2015-02-19 18:10:31 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/935193002/1
5 years, 10 months ago (2015-02-19 18:13:05 UTC) #6
danakj
https://codereview.chromium.org/935193002/diff/1/cc/trees/layer_tree_host_unittest.cc File cc/trees/layer_tree_host_unittest.cc (right): https://codereview.chromium.org/935193002/diff/1/cc/trees/layer_tree_host_unittest.cc#newcode6354 cc/trees/layer_tree_host_unittest.cc:6354: ASSERT_TRUE(child_impl); On 2015/02/19 18:10:31, enne wrote: > On 2015/02/19 ...
5 years, 10 months ago (2015-02-19 18:36:44 UTC) #7
enne (OOO)
https://codereview.chromium.org/935193002/diff/1/cc/trees/layer_tree_host_unittest.cc File cc/trees/layer_tree_host_unittest.cc (right): https://codereview.chromium.org/935193002/diff/1/cc/trees/layer_tree_host_unittest.cc#newcode6354 cc/trees/layer_tree_host_unittest.cc:6354: ASSERT_TRUE(child_impl); On 2015/02/19 18:36:44, danakj wrote: > On 2015/02/19 ...
5 years, 10 months ago (2015-02-19 18:40:33 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/935193002/20001
5 years, 10 months ago (2015-02-19 18:41:31 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 10 months ago (2015-02-19 19:47:58 UTC) #13
commit-bot: I haz the power
5 years, 10 months ago (2015-02-19 19:48:32 UTC) #14
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/b723b4e24b5160aee2db354084b7ccc6a709fbec
Cr-Commit-Position: refs/heads/master@{#317107}

Powered by Google App Engine
This is Rietveld 408576698