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

Issue 81533002: Use LatencyInfoSwapPromise to track LatencyInfo through compositor (Closed)

Created:
7 years, 1 month ago by Yufeng Shen (Slow to review)
Modified:
7 years ago
Reviewers:
danakj, jamesr, sadrul, jbauman
CC:
chromium-reviews, jbauman+watch_chromium.org, Ian Vollick, jam, sievers+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, cc-bugs_chromium.org, danakj+watch_chromium.org, nduca, Rick Byers, jamesr
Base URL:
http://git.chromium.org/chromium/src.git@swap_promise_2
Visibility:
Public.

Description

Use LatencyInfoSwapPromise to track LatencyInfo through compositor Originally we cache LatencyInfo directly in compositor. Now that with the support of SwapPromise, we can use LatencyInfoSwapPromise to track the LatencyInfo. BUG=246034 TEST=Input LatencyInfo are still correctly passed to output surface through LatencyInfoSwapPromise. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=237848

Patch Set 1 #

Patch Set 2 : rebase #

Total comments: 8

Patch Set 3 : address Dana's comments #

Patch Set 4 : reupload #

Total comments: 6

Patch Set 5 : remove |type| from SwapPromise #

Total comments: 6

Patch Set 6 : tests added #

Total comments: 2

Patch Set 7 : fix nits #

Total comments: 6

Patch Set 8 : fix typos #

Patch Set 9 : add cc_unittests dependency on ui/events/events.gyp:events_base #

Patch Set 10 : fix compiler error #

Patch Set 11 : fix test error #

Patch Set 12 : LatencyInfo merging in GPU side fails the test :( #

Patch Set 13 : fix typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+169 lines, -57 lines) Patch
A cc/base/latency_info_swap_promise.h View 1 2 3 4 5 6 7 8 9 1 chunk +28 lines, -0 lines 0 comments Download
A cc/base/latency_info_swap_promise.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +50 lines, -0 lines 0 comments Download
M cc/base/swap_promise.h View 1 2 3 4 5 6 7 8 9 3 chunks +7 lines, -5 lines 0 comments Download
M cc/cc.gyp View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M cc/cc_tests.gyp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/layer_tree_host.h View 1 2 3 chunks +0 lines, -4 lines 0 comments Download
M cc/trees/layer_tree_host.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +0 lines, -9 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 4 chunks +5 lines, -4 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 5 1 chunk +39 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/layer_tree_impl.h View 1 2 3 chunks +1 line, -8 lines 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 2 4 chunks +2 lines, -19 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -2 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 2 2 chunks +4 lines, -1 line 0 comments Download
M ui/compositor/compositor.cc View 1 2 2 chunks +4 lines, -1 line 0 comments Download
M ui/events/latency_info.h View 1 2 3 4 5 6 7 2 chunks +12 lines, -3 lines 0 comments Download
M ui/events/latency_info.cc View 1 2 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (0 generated)
Yufeng Shen (Slow to review)
This is based on the SwapPromise CL https://codereview.chromium.org/60513007/
7 years, 1 month ago (2013-11-21 20:05:44 UTC) #1
Yufeng Shen (Slow to review)
Hey Dana, Now that the the SwapPromise CL https://codereview.chromium.org/60513007/ is close to be merged, can ...
7 years ago (2013-11-26 00:05:25 UTC) #2
danakj
https://codereview.chromium.org/81533002/diff/150001/cc/base/swap_promise.cc File cc/base/swap_promise.cc (right): https://codereview.chromium.org/81533002/diff/150001/cc/base/swap_promise.cc#newcode54 cc/base/swap_promise.cc:54: latency_.AddLatencyNumber(DidNotSwapReasonToLatencyComponentType(reason), these methods can be called on either thread. ...
7 years ago (2013-11-26 19:17:53 UTC) #3
Yufeng Shen (Slow to review)
https://codereview.chromium.org/81533002/diff/150001/cc/base/swap_promise.cc File cc/base/swap_promise.cc (right): https://codereview.chromium.org/81533002/diff/150001/cc/base/swap_promise.cc#newcode54 cc/base/swap_promise.cc:54: latency_.AddLatencyNumber(DidNotSwapReasonToLatencyComponentType(reason), On 2013/11/26 19:17:53, danakj wrote: > these methods ...
7 years ago (2013-11-27 20:05:32 UTC) #4
danakj
This is looking good, now you can remove some more things too: https://codereview.chromium.org/81533002/diff/190001/cc/base/latency_info_swap_promise.h File cc/base/latency_info_swap_promise.h ...
7 years ago (2013-11-27 20:11:41 UTC) #5
Yufeng Shen (Slow to review)
https://codereview.chromium.org/81533002/diff/190001/cc/base/latency_info_swap_promise.h File cc/base/latency_info_swap_promise.h (right): https://codereview.chromium.org/81533002/diff/190001/cc/base/latency_info_swap_promise.h#newcode22 cc/base/latency_info_swap_promise.h:22: const ui::LatencyInfo& GetLatencyInfo(); On 2013/11/27 20:11:42, danakj wrote: > ...
7 years ago (2013-11-27 20:18:52 UTC) #6
danakj
Cool! Is there any cc_unittest to verify that LatencyInfo gets added to the Metadata correctly? ...
7 years ago (2013-11-27 20:26:10 UTC) #7
Yufeng Shen (Slow to review)
tests added. https://codereview.chromium.org/81533002/diff/210001/cc/base/latency_info_swap_promise.cc File cc/base/latency_info_swap_promise.cc (right): https://codereview.chromium.org/81533002/diff/210001/cc/base/latency_info_swap_promise.cc#newcode16 cc/base/latency_info_swap_promise.cc:16: break; On 2013/11/27 20:26:10, danakj wrote: > ...
7 years ago (2013-11-27 21:19:33 UTC) #8
danakj
Thanks for the test! LGTM with one more quibble. https://codereview.chromium.org/81533002/diff/230001/cc/base/latency_info_swap_promise.cc File cc/base/latency_info_swap_promise.cc (right): https://codereview.chromium.org/81533002/diff/230001/cc/base/latency_info_swap_promise.cc#newcode21 cc/base/latency_info_swap_promise.cc:21: ...
7 years ago (2013-11-27 21:21:40 UTC) #9
Yufeng Shen (Slow to review)
+ jamesr@ for OWNER of content/renderer/gpu/render_widget_compositor.cc + jbauman@ for OWNER of ui/events/latency_info.* https://codereview.chromium.org/81533002/diff/230001/cc/base/latency_info_swap_promise.cc File cc/base/latency_info_swap_promise.cc ...
7 years ago (2013-11-27 21:28:16 UTC) #10
jamesr
content/renderer/ lgtm
7 years ago (2013-11-27 21:29:08 UTC) #11
sadrul
ui/events/ lgtm https://codereview.chromium.org/81533002/diff/250001/ui/events/latency_info.h File ui/events/latency_info.h (right): https://codereview.chromium.org/81533002/diff/250001/ui/events/latency_info.h#newcode58 ui/events/latency_info.h:58: // This component indicats that the input ...
7 years ago (2013-11-27 22:48:12 UTC) #12
Yufeng Shen (Slow to review)
Thanks Sadrul. https://codereview.chromium.org/81533002/diff/250001/ui/events/latency_info.h File ui/events/latency_info.h (right): https://codereview.chromium.org/81533002/diff/250001/ui/events/latency_info.h#newcode58 ui/events/latency_info.h:58: // This component indicats that the input ...
7 years ago (2013-11-27 22:55:05 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miletus@chromium.org/81533002/270001
7 years ago (2013-11-27 23:38:38 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miletus@chromium.org/81533002/270001
7 years ago (2013-11-28 01:22:39 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miletus@chromium.org/81533002/270001
7 years ago (2013-11-28 02:02:29 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miletus@chromium.org/81533002/270001
7 years ago (2013-11-28 02:23:49 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miletus@chromium.org/81533002/270001
7 years ago (2013-11-28 02:31:33 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miletus@chromium.org/81533002/290001
7 years ago (2013-11-28 03:02:07 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miletus@chromium.org/81533002/290001
7 years ago (2013-11-28 03:30:35 UTC) #20
commit-bot: I haz the power
Retried try job too often on android_dbg for step(s) slave_steps http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_dbg&number=127113
7 years ago (2013-11-28 04:13:14 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miletus@chromium.org/81533002/290001
7 years ago (2013-11-28 06:21:41 UTC) #22
commit-bot: I haz the power
Retried try job too often on android_clang_dbg for step(s) slave_steps http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_clang_dbg&number=96463
7 years ago (2013-11-28 07:02:45 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miletus@chromium.org/81533002/310001
7 years ago (2013-11-28 17:00:30 UTC) #24
commit-bot: I haz the power
Failed to trigger a try job on win_rel HTTP Error 400: Bad Request
7 years ago (2013-11-28 18:01:07 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miletus@chromium.org/81533002/330001
7 years ago (2013-11-28 18:02:51 UTC) #26
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) content_browsertests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=179343
7 years ago (2013-11-28 19:50:20 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miletus@chromium.org/81533002/330001
7 years ago (2013-11-28 19:53:34 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miletus@chromium.org/81533002/370001
7 years ago (2013-11-28 20:06:25 UTC) #29
commit-bot: I haz the power
7 years ago (2013-11-29 00:01:24 UTC) #30
Message was sent while issue was closed.
Change committed as 237848

Powered by Google App Engine
This is Rietveld 408576698