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

Issue 23686011: CC: Fix missing swap-used-incomplete-tile updates (Closed)

Created:
7 years, 3 months ago by epenner
Modified:
7 years, 3 months ago
CC:
chromium-reviews, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

CC: Fix missing swap-used-incomplete-tile updates When we early-out of a frame that has no damage, we didn't correctly detect if the frame had incomplete tiles. This patch only updates the flag if a swap actually occurs. To prevent this kind of bug in the future, this patch always sets the did-swap-use-incomplete-tile flag when it is known, rather than resetting it to false in one place and hoping it will always be set again correctly in all cases. The test times-out without this patch. BUG=284810 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221891

Patch Set 1 #

Patch Set 2 : Rename. #

Patch Set 3 : Add test. #

Total comments: 10

Patch Set 4 : Nits. #

Total comments: 4

Patch Set 5 : Feedback. #

Patch Set 6 : Make settings private again. #

Patch Set 7 : Whitespace only/ #

Patch Set 8 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+132 lines, -17 lines) Patch
M cc/scheduler/scheduler.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M cc/scheduler/scheduler.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M cc/scheduler/scheduler_state_machine.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M cc/scheduler/scheduler_state_machine.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -5 lines 0 comments Download
M cc/test/layer_tree_test.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M cc/test/layer_tree_test.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_unittest_damage.cc View 1 2 3 4 2 chunks +98 lines, -0 lines 0 comments Download
M cc/trees/thread_proxy.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/thread_proxy.cc View 1 2 3 4 5 6 7 2 chunks +15 lines, -5 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
epennerAtGoogle
Ptal. I could stash the has-incomplete-tiles flag from the last frame, but this felt a ...
7 years, 3 months ago (2013-09-05 00:44:40 UTC) #1
epennerAtGoogle
On 2013/09/05 00:44:40, epennerAtGoogle wrote: > Ptal. > > I could stash the has-incomplete-tiles flag ...
7 years, 3 months ago (2013-09-05 00:48:22 UTC) #2
brianderson
Nice. Looks like you address both the failed draw and the no damage cases. Can ...
7 years, 3 months ago (2013-09-05 00:49:58 UTC) #3
epennerAtGoogle
On 2013/09/05 00:49:58, Brian Anderson wrote: > Nice. Looks like you address both the failed ...
7 years, 3 months ago (2013-09-05 01:26:09 UTC) #4
brianderson
Could you add a test to layer_tree_host_unittest.cc, where you do something like: 1) Override BeginTest() ...
7 years, 3 months ago (2013-09-05 01:49:44 UTC) #5
epennerAtGoogle
Ptal. Added the test. Thanks brianderson@, for that excellent method to test this. https://codereview.chromium.org/23686011/diff/19001/cc/trees/layer_tree_host_impl.h File ...
7 years, 3 months ago (2013-09-07 00:06:11 UTC) #6
brianderson
Thanks for the test. https://codereview.chromium.org/23686011/diff/19001/cc/trees/layer_tree_host_unittest_damage.cc File cc/trees/layer_tree_host_unittest_damage.cc (right): https://codereview.chromium.org/23686011/diff/19001/cc/trees/layer_tree_host_unittest_damage.cc#newcode695 cc/trees/layer_tree_host_unittest_damage.cc:695: if (!settings_.impl_side_painting) { Is there ...
7 years, 3 months ago (2013-09-07 00:50:36 UTC) #7
epenner
Ptal. https://codereview.chromium.org/23686011/diff/19001/cc/trees/layer_tree_host_unittest_damage.cc File cc/trees/layer_tree_host_unittest_damage.cc (right): https://codereview.chromium.org/23686011/diff/19001/cc/trees/layer_tree_host_unittest_damage.cc#newcode695 cc/trees/layer_tree_host_unittest_damage.cc:695: if (!settings_.impl_side_painting) { On 2013/09/07 00:50:37, Brian Anderson ...
7 years, 3 months ago (2013-09-07 00:57:15 UTC) #8
danakj
https://codereview.chromium.org/23686011/diff/19001/cc/trees/layer_tree_host_unittest_damage.cc File cc/trees/layer_tree_host_unittest_damage.cc (right): https://codereview.chromium.org/23686011/diff/19001/cc/trees/layer_tree_host_unittest_damage.cc#newcode695 cc/trees/layer_tree_host_unittest_damage.cc:695: if (!settings_.impl_side_painting) { On 2013/09/07 00:57:15, epenner wrote: > ...
7 years, 3 months ago (2013-09-07 00:59:05 UTC) #9
danakj
https://codereview.chromium.org/23686011/diff/26001/cc/trees/layer_tree_host_unittest_damage.cc File cc/trees/layer_tree_host_unittest_damage.cc (right): https://codereview.chromium.org/23686011/diff/26001/cc/trees/layer_tree_host_unittest_damage.cc#newcode703 cc/trees/layer_tree_host_unittest_damage.cc:703: root_ = FakeContentLayer::Create(&client_); If you're testing impl paint only, ...
7 years, 3 months ago (2013-09-07 01:00:15 UTC) #10
epenner
On 2013/09/07 00:57:15, epenner wrote: > Ptal. > > https://codereview.chromium.org/23686011/diff/19001/cc/trees/layer_tree_host_unittest_damage.cc > File cc/trees/layer_tree_host_unittest_damage.cc (right): > ...
7 years, 3 months ago (2013-09-07 01:00:51 UTC) #11
brianderson
On 2013/09/07 01:00:51, epenner wrote: > On 2013/09/07 00:57:15, epenner wrote: > > Ptal. > ...
7 years, 3 months ago (2013-09-07 01:08:13 UTC) #12
epenner
Okay I made a "ForTesting" method. Fixed remaining feedback also. Ptal. https://codereview.chromium.org/23686011/diff/19001/cc/trees/layer_tree_host_impl.h File cc/trees/layer_tree_host_impl.h (right): ...
7 years, 3 months ago (2013-09-07 01:52:22 UTC) #13
epenner
https://codereview.chromium.org/23686011/diff/26001/cc/trees/layer_tree_host_unittest_damage.cc File cc/trees/layer_tree_host_unittest_damage.cc (right): https://codereview.chromium.org/23686011/diff/26001/cc/trees/layer_tree_host_unittest_damage.cc#newcode703 cc/trees/layer_tree_host_unittest_damage.cc:703: root_ = FakeContentLayer::Create(&client_); On 2013/09/07 01:00:15, danakj wrote: > ...
7 years, 3 months ago (2013-09-07 01:55:18 UTC) #14
brianderson
lgtm, although you'll likely need to rebase on top of the readback/forced draw patch that ...
7 years, 3 months ago (2013-09-07 02:00:03 UTC) #15
epennerAtGoogle
On 2013/09/07 02:00:03, Brian Anderson wrote: > lgtm, although you'll likely need to rebase on ...
7 years, 3 months ago (2013-09-07 02:01:41 UTC) #16
epenner
On 2013/09/07 02:01:41, epennerAtGoogle wrote: > On 2013/09/07 02:00:03, Brian Anderson wrote: > > lgtm, ...
7 years, 3 months ago (2013-09-07 02:24:32 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/epenner@chromium.org/23686011/44001
7 years, 3 months ago (2013-09-07 02:26:07 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/epenner@chromium.org/23686011/61001
7 years, 3 months ago (2013-09-07 02:35:04 UTC) #19
commit-bot: I haz the power
7 years, 3 months ago (2013-09-07 04:32:16 UTC) #20
Message was sent while issue was closed.
Change committed as 221891

Powered by Google App Engine
This is Rietveld 408576698