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

Issue 246753008: cc: Unify use of DidSwapBuffers() and did_request_swap (Closed)

Created:
6 years, 8 months ago by simonhong
Modified:
6 years, 7 months ago
Reviewers:
brianderson, Sami
CC:
chromium-reviews, cc-bugs_chromium.org, hyojun.im_lge.com, danakj
Visibility:
Public.

Description

cc: Unify use of DidSwapBuffers() and did_request_swap Use OutputSurface::DidSwapBuffers() as the source of whether we swapped or not. R=brianderson@chromium.org BUG=363414 TEST=cc_unittests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=269738

Patch Set 1 #

Total comments: 4

Patch Set 2 : Use DrawResult #

Patch Set 3 : Introduce HasSentDrawRequestThisFrame() #

Total comments: 12

Patch Set 4 : WIP #

Patch Set 5 : Use did_swap_request #

Total comments: 12

Patch Set 6 : #

Patch Set 7 : Fix comment #

Total comments: 6

Patch Set 8 : Fix comment #

Total comments: 13

Patch Set 9 : Remove HasRequestedDrawThisFrame() #

Total comments: 2

Patch Set 10 : fix comment #

Patch Set 11 : Rebased #

Patch Set 12 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+358 lines, -496 lines) Patch
M cc/cc.gyp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M cc/layers/delegated_renderer_layer_impl_unittest.cc View 1 2 3 4 5 6 25 chunks +25 lines, -50 lines 0 comments Download
M cc/output/delegating_renderer_unittest.cc View 1 3 chunks +6 lines, -7 lines 0 comments Download
A + cc/scheduler/draw_result.h View 1 2 3 2 chunks +4 lines, -20 lines 0 comments Download
M cc/scheduler/draw_swap_readback_result.h View 1 2 3 1 chunk +0 lines, -38 lines 0 comments Download
M cc/scheduler/scheduler.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +4 lines, -6 lines 0 comments Download
M cc/scheduler/scheduler.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +8 lines, -14 lines 0 comments Download
M cc/scheduler/scheduler_state_machine.h View 1 2 3 4 5 6 7 8 4 chunks +4 lines, -2 lines 0 comments Download
M cc/scheduler/scheduler_state_machine.cc View 1 2 3 4 5 6 7 8 9 12 chunks +29 lines, -24 lines 0 comments Download
M cc/scheduler/scheduler_state_machine_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 28 chunks +64 lines, -27 lines 0 comments Download
M cc/scheduler/scheduler_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +15 lines, -34 lines 0 comments Download
M cc/test/layer_tree_test.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M cc/test/layer_tree_test.cc View 1 2 3 4 2 chunks +5 lines, -6 lines 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +5 lines, -6 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +11 lines, -16 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 70 chunks +70 lines, -133 lines 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 10 chunks +22 lines, -22 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_animation.cc View 1 2 3 6 chunks +13 lines, -14 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_context.cc View 1 2 3 4 5 6 7 chunks +13 lines, -13 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_damage.cc View 1 8 chunks +24 lines, -24 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_delegated.cc View 1 2 3 4 5 6 1 chunk +3 lines, -3 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_video.cc View 1 2 chunks +4 lines, -5 lines 0 comments Download
M cc/trees/thread_proxy.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +6 lines, -7 lines 0 comments Download
M cc/trees/thread_proxy.cc View 1 2 3 4 5 6 7 8 9 10 11 9 chunks +20 lines, -22 lines 0 comments Download

Messages

Total messages: 38 (0 generated)
simonhong
PTAL!
6 years, 8 months ago (2014-04-23 13:02:57 UTC) #1
brianderson
I like the idea of using the callback as the one true source of whether ...
6 years, 8 months ago (2014-04-24 01:54:15 UTC) #2
simonhong
Moving last_frame_number_swap_performed_ setting time to DidSwapBuffers() cause many tests failure. I need to check the ...
6 years, 8 months ago (2014-04-25 01:13:37 UTC) #3
simonhong
On 2014/04/25 01:13:37, simonhong wrote: > Moving last_frame_number_swap_performed_ setting time to DidSwapBuffers() cause > many ...
6 years, 8 months ago (2014-04-28 07:13:51 UTC) #4
Sami
Thanks Simon, I think this is a good cleanup. https://codereview.chromium.org/246753008/diff/40001/cc/scheduler/draw_swap_readback_result.h File cc/scheduler/draw_swap_readback_result.h (right): https://codereview.chromium.org/246753008/diff/40001/cc/scheduler/draw_swap_readback_result.h#newcode5 cc/scheduler/draw_swap_readback_result.h:5: ...
6 years, 7 months ago (2014-05-01 10:21:43 UTC) #5
brianderson
https://codereview.chromium.org/246753008/diff/40001/cc/scheduler/scheduler_state_machine.cc File cc/scheduler/scheduler_state_machine.cc (right): https://codereview.chromium.org/246753008/diff/40001/cc/scheduler/scheduler_state_machine.cc#newcode768 cc/scheduler/scheduler_state_machine.cc:768: last_frame_number_draw_request_sent_ = current_frame_number_; Hmmm. This would mean that a ...
6 years, 7 months ago (2014-05-02 04:08:58 UTC) #6
simonhong
Dear brian and sami, Sorry for late response. (I just come back from vacation :)) ...
6 years, 7 months ago (2014-05-08 01:14:57 UTC) #7
brianderson
Hope you had a good vacation Simon. Welcome back! https://codereview.chromium.org/246753008/diff/80001/cc/scheduler/scheduler_state_machine.cc File cc/scheduler/scheduler_state_machine.cc (left): https://codereview.chromium.org/246753008/diff/80001/cc/scheduler/scheduler_state_machine.cc#oldcode631 cc/scheduler/scheduler_state_machine.cc:631: ...
6 years, 7 months ago (2014-05-08 02:24:13 UTC) #8
simonhong
All done! Thanks for kind review! https://codereview.chromium.org/246753008/diff/80001/cc/scheduler/scheduler_state_machine.cc File cc/scheduler/scheduler_state_machine.cc (left): https://codereview.chromium.org/246753008/diff/80001/cc/scheduler/scheduler_state_machine.cc#oldcode631 cc/scheduler/scheduler_state_machine.cc:631: On 2014/05/08 02:24:13, ...
6 years, 7 months ago (2014-05-08 03:13:30 UTC) #9
Sami
https://codereview.chromium.org/246753008/diff/130001/cc/scheduler/scheduler_state_machine.cc File cc/scheduler/scheduler_state_machine.cc (right): https://codereview.chromium.org/246753008/diff/130001/cc/scheduler/scheduler_state_machine.cc#newcode388 cc/scheduler/scheduler_state_machine.cc:388: // After this line, we only want to send ...
6 years, 7 months ago (2014-05-08 14:18:11 UTC) #10
simonhong
Dear sami, Please check my comment. Thanks for review! https://codereview.chromium.org/246753008/diff/130001/cc/scheduler/scheduler_state_machine.cc File cc/scheduler/scheduler_state_machine.cc (right): https://codereview.chromium.org/246753008/diff/130001/cc/scheduler/scheduler_state_machine.cc#newcode388 cc/scheduler/scheduler_state_machine.cc:388: ...
6 years, 7 months ago (2014-05-08 14:50:13 UTC) #11
Sami
On 2014/05/08 14:50:13, simonhong wrote: > As brian said, we should check whether swap is ...
6 years, 7 months ago (2014-05-08 14:53:14 UTC) #12
brianderson
Thanks Simon. lgtm with final comments addressed. https://codereview.chromium.org/246753008/diff/150001/cc/scheduler/scheduler_state_machine.cc File cc/scheduler/scheduler_state_machine.cc (right): https://codereview.chromium.org/246753008/diff/150001/cc/scheduler/scheduler_state_machine.cc#newcode925 cc/scheduler/scheduler_state_machine.cc:925: if (HasRequestedDrawThisFrame()) ...
6 years, 7 months ago (2014-05-08 17:40:19 UTC) #13
simonhong
Dear brian, Please check my comment. Many thanks! https://codereview.chromium.org/246753008/diff/150001/cc/scheduler/scheduler_state_machine.cc File cc/scheduler/scheduler_state_machine.cc (right): https://codereview.chromium.org/246753008/diff/150001/cc/scheduler/scheduler_state_machine.cc#newcode925 cc/scheduler/scheduler_state_machine.cc:925: if ...
6 years, 7 months ago (2014-05-09 00:18:40 UTC) #14
brianderson
https://codereview.chromium.org/246753008/diff/150001/cc/scheduler/scheduler_state_machine.cc File cc/scheduler/scheduler_state_machine.cc (right): https://codereview.chromium.org/246753008/diff/150001/cc/scheduler/scheduler_state_machine.cc#newcode925 cc/scheduler/scheduler_state_machine.cc:925: if (HasRequestedDrawThisFrame()) On 2014/05/09 00:18:40, simonhong wrote: > On ...
6 years, 7 months ago (2014-05-09 00:27:18 UTC) #15
simonhong
https://codereview.chromium.org/246753008/diff/150001/cc/trees/layer_tree_host_impl_unittest.cc File cc/trees/layer_tree_host_impl_unittest.cc (right): https://codereview.chromium.org/246753008/diff/150001/cc/trees/layer_tree_host_impl_unittest.cc#newcode1729 cc/trees/layer_tree_host_impl_unittest.cc:1729: EXPECT_EQ(DRAW_SUCCESS, On 2014/05/09 00:27:18, brianderson wrote: > On 2014/05/09 ...
6 years, 7 months ago (2014-05-09 00:35:26 UTC) #16
simonhong
The CQ bit was checked by simonhong@chromium.org
6 years, 7 months ago (2014-05-09 21:20:03 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/simonhong@chromium.org/246753008/230001
6 years, 7 months ago (2014-05-09 21:22:29 UTC) #18
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-11 00:38:10 UTC) #19
commit-bot: I haz the power
Failed to apply patch for cc/scheduler/scheduler_state_machine_unittest.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 7 months ago (2014-05-11 00:38:11 UTC) #20
simonhong
The CQ bit was checked by simonhong@chromium.org
6 years, 7 months ago (2014-05-11 01:42:28 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/simonhong@chromium.org/246753008/270001
6 years, 7 months ago (2014-05-11 01:43:46 UTC) #22
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-11 02:12:35 UTC) #23
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-11 02:15:35 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_gn_rel/builds/6049) linux_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_rel/builds/30148)
6 years, 7 months ago (2014-05-11 02:15:36 UTC) #25
simonhong
The CQ bit was checked by simonhong@chromium.org
6 years, 7 months ago (2014-05-11 02:57:54 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/simonhong@chromium.org/246753008/270001
6 years, 7 months ago (2014-05-11 02:58:02 UTC) #27
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-11 03:25:05 UTC) #28
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-11 03:26:55 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/mac_chromium_compile_dbg/builds/22172)
6 years, 7 months ago (2014-05-11 03:26:57 UTC) #30
simonhong
The CQ bit was checked by simonhong@chromium.org
6 years, 7 months ago (2014-05-11 08:19:36 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/simonhong@chromium.org/246753008/270001
6 years, 7 months ago (2014-05-11 08:19:45 UTC) #32
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-11 08:50:29 UTC) #33
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-11 08:53:55 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/67073) linux_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_rel/builds/30168)
6 years, 7 months ago (2014-05-11 08:53:56 UTC) #35
simonhong
The CQ bit was checked by simonhong@chromium.org
6 years, 7 months ago (2014-05-12 00:05:27 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/simonhong@chromium.org/246753008/290001
6 years, 7 months ago (2014-05-12 00:05:37 UTC) #37
commit-bot: I haz the power
6 years, 7 months ago (2014-05-12 04:26:05 UTC) #38
Message was sent while issue was closed.
Change committed as 269738

Powered by Google App Engine
This is Rietveld 408576698