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

Issue 123563002: Remove gpu side LatencyInfo merging (Closed)

Created:
6 years, 11 months ago by Yufeng Shen (Slow to review)
Modified:
6 years, 11 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, yusukes+watch_chromium.org, yukishiino+watch_chromium.org, jam, penghuang+watch_chromium.org, sievers+watch_chromium.org, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org, James Su, miu+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@gpu-per-event-latency-6-small
Visibility:
Public.

Description

Remove gpu side LatencyInfo merging This CL removes the LatecyInfo merging from the following path: Compsitor to GPU: CommandBufferProxyImpl::SetLatencyInfo() -> (GpuCommandBufferMsg_SetLatencyInfo) -> GpuCommandBufferStub::OnSetLatencyInfo() -> ImageTransportHelper::SetLatencyInfo() -> XXXImageTransportSurface:SetLatencyInfo() After swap buffers: XXXImageTransportSurface::SwapBuffers() -> (GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params/ GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params/ GpuHostMsg_FrameDrawn) -> RenderWidgetHostView BUG=246034 TEST=unittests pass. Tested on Pixel. chrome://tracing shows correct InputLatency tracking for various inputs. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=245260

Patch Set 1 #

Patch Set 2 : fix mac build #

Total comments: 4

Patch Set 3 : Sending LatencyInfo back to View through SendAcceleratedSurfaceBuffersSwapped #

Total comments: 2

Patch Set 4 : clear latencyinfo list in ViewHostMsg_CompositorSurfaceBuffersSwapped if it is too big #

Patch Set 5 : Upon receving ViewHostMsg_CompositorSurfaceBuffersSwapped, CHECK LatencyInfo list size #

Total comments: 2

Patch Set 6 : ignore ViewHostMsg_CompositorSurfaceBuffersSwapped msg if the latency_info list if too big #

Total comments: 12

Patch Set 7 : adding check at more places for GpuHostMsg_AcceleratedSurfaceBuffersSwapped/PostBuffer #

Total comments: 2

Patch Set 8 : refactor LatencyInfo size into LatencyInfo::Verify() #

Patch Set 9 : fix win_rel compiler error #

Total comments: 2

Patch Set 10 : fix mac_rel compiler error. Move kMaxLatencyInfoNumber to .cc file #

Unified diffs Side-by-side diffs Delta from patch set Stats (+181 lines, -122 lines) Patch
M content/browser/aura/software_browser_compositor_output_surface.cc View 1 chunk +5 lines, -7 lines 0 comments Download
M content/browser/gpu/gpu_process_host.cc View 1 2 3 4 5 6 7 8 6 chunks +18 lines, -4 lines 0 comments Download
M content/browser/gpu/gpu_process_host_ui_shim.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/gpu/gpu_process_host_ui_shim.cc View 1 2 3 4 5 6 7 3 chunks +12 lines, -3 lines 0 comments Download
M content/browser/renderer_host/compositing_iosurface_mac.h View 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/compositing_iosurface_mac.mm View 1 2 3 3 chunks +9 lines, -5 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.h View 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 4 5 6 7 2 chunks +23 lines, -19 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 3 4 2 chunks +2 lines, -12 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/common/gpu/client/command_buffer_proxy_impl.cc View 1 chunk +1 line, -7 lines 0 comments Download
M content/common/gpu/gpu_command_buffer_stub.h View 2 chunks +2 lines, -2 lines 0 comments Download
M content/common/gpu/gpu_command_buffer_stub.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -1 line 0 comments Download
M content/common/gpu/gpu_messages.h View 4 chunks +4 lines, -4 lines 0 comments Download
M content/common/gpu/image_transport_surface.h View 5 chunks +5 lines, -5 lines 0 comments Download
M content/common/gpu/image_transport_surface.cc View 1 2 9 chunks +18 lines, -11 lines 0 comments Download
M content/common/gpu/image_transport_surface_mac.cc View 5 chunks +8 lines, -6 lines 0 comments Download
M content/common/gpu/image_transport_surface_win.cc View 4 chunks +6 lines, -5 lines 0 comments Download
M content/common/gpu/texture_image_transport_surface.h View 2 chunks +2 lines, -2 lines 0 comments Download
M content/common/gpu/texture_image_transport_surface.cc View 3 chunks +5 lines, -4 lines 0 comments Download
M content/common/view_messages.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ui/events/latency_info.h View 1 2 3 4 5 6 7 8 9 2 chunks +11 lines, -0 lines 0 comments Download
M ui/events/latency_info.cc View 1 2 3 4 5 6 7 8 9 2 chunks +13 lines, -0 lines 0 comments Download
M ui/surface/accelerated_surface_win.h View 4 chunks +8 lines, -7 lines 0 comments Download
M ui/surface/accelerated_surface_win.cc View 6 chunks +14 lines, -11 lines 0 comments Download

Messages

Total messages: 30 (0 generated)
Yufeng Shen (Slow to review)
Hey John, Hopefully after this CL all the renderer side LatencyInfo merging are gone.
6 years, 11 months ago (2014-01-02 23:28:54 UTC) #1
Yufeng Shen (Slow to review)
On 2014/01/02 23:28:54, Yufeng Shen wrote: > Hey John, > > Hopefully after this CL ...
6 years, 11 months ago (2014-01-08 01:59:32 UTC) #2
jbauman
https://codereview.chromium.org/123563002/diff/20001/content/common/gpu/image_transport_surface.cc File content/common/gpu/image_transport_surface.cc (right): https://codereview.chromium.org/123563002/diff/20001/content/common/gpu/image_transport_surface.cc#newcode276 content/common/gpu/image_transport_surface.cc:276: params.latency_info = std::vector<ui::LatencyInfo>(); Why aren't you passing latency_info_ through ...
6 years, 11 months ago (2014-01-09 01:28:47 UTC) #3
Yufeng Shen (Slow to review)
https://codereview.chromium.org/123563002/diff/20001/content/common/gpu/image_transport_surface.cc File content/common/gpu/image_transport_surface.cc (right): https://codereview.chromium.org/123563002/diff/20001/content/common/gpu/image_transport_surface.cc#newcode276 content/common/gpu/image_transport_surface.cc:276: params.latency_info = std::vector<ui::LatencyInfo>(); On 2014/01/09 01:28:47, jbauman wrote: > ...
6 years, 11 months ago (2014-01-09 22:41:40 UTC) #4
jbauman
lgtm
6 years, 11 months ago (2014-01-09 22:46:56 UTC) #5
Yufeng Shen (Slow to review)
Thanks John for checking the overall LatencyInfo unmerging flow. + kbr@ for OWNER of content/browser/gpu/* ...
6 years, 11 months ago (2014-01-09 22:54:57 UTC) #6
jln (very slow on Chromium)
https://codereview.chromium.org/123563002/diff/90001/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://codereview.chromium.org/123563002/diff/90001/content/browser/renderer_host/render_widget_host_impl.cc#newcode1469 content/browser/renderer_host/render_widget_host_impl.cc:1469: const ViewHostMsg_CompositorSurfaceBuffersSwapped_Params& params) { Could you add a check ...
6 years, 11 months ago (2014-01-09 23:13:27 UTC) #7
Yufeng Shen (Slow to review)
https://codereview.chromium.org/123563002/diff/90001/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://codereview.chromium.org/123563002/diff/90001/content/browser/renderer_host/render_widget_host_impl.cc#newcode1469 content/browser/renderer_host/render_widget_host_impl.cc:1469: const ViewHostMsg_CompositorSurfaceBuffersSwapped_Params& params) { On 2014/01/09 23:13:27, jln wrote: ...
6 years, 11 months ago (2014-01-10 01:14:00 UTC) #8
jln (very slow on Chromium)
On 2014/01/10 01:14:00, Yufeng Shen wrote: > https://codereview.chromium.org/123563002/diff/90001/content/browser/renderer_host/render_widget_host_impl.cc > File content/browser/renderer_host/render_widget_host_impl.cc (right): > > https://codereview.chromium.org/123563002/diff/90001/content/browser/renderer_host/render_widget_host_impl.cc#newcode1469 ...
6 years, 11 months ago (2014-01-10 01:20:39 UTC) #9
Ken Russell (switch to Gerrit)
It sounds like there are issues to be resolved per jln's review. Please ping me ...
6 years, 11 months ago (2014-01-10 07:51:33 UTC) #10
Yufeng Shen (Slow to review)
On 2014/01/10 01:20:39, jln wrote: > On 2014/01/10 01:14:00, Yufeng Shen wrote: > > > ...
6 years, 11 months ago (2014-01-10 19:52:04 UTC) #11
Yufeng Shen (Slow to review)
Offline talk to jln@ and got it clear that it is at the receiving side ...
6 years, 11 months ago (2014-01-14 00:28:18 UTC) #12
jln (very slow on Chromium)
Sorry, I should have been more clear, when I meant "checking" that I didn't mean ...
6 years, 11 months ago (2014-01-14 00:32:50 UTC) #13
Yufeng Shen (Slow to review)
https://codereview.chromium.org/123563002/diff/320001/content/browser/renderer_host/render_process_host_impl.cc File content/browser/renderer_host/render_process_host_impl.cc (right): https://codereview.chromium.org/123563002/diff/320001/content/browser/renderer_host/render_process_host_impl.cc#newcode1994 content/browser/renderer_host/render_process_host_impl.cc:1994: CHECK(params.latency_info.size() < kMaxLatencyInfoNumber); On 2014/01/14 00:32:51, jln wrote: > ...
6 years, 11 months ago (2014-01-14 00:47:14 UTC) #14
jln (very slow on Chromium)
So, content/common/gpu/gpu_messages.h is in scope for this review as well, which unfortunately adds a few ...
6 years, 11 months ago (2014-01-14 01:11:51 UTC) #15
Yufeng Shen (Slow to review)
https://codereview.chromium.org/123563002/diff/460001/content/browser/gpu/gpu_process_host.cc File content/browser/gpu/gpu_process_host.cc (right): https://codereview.chromium.org/123563002/diff/460001/content/browser/gpu/gpu_process_host.cc#newcode879 content/browser/gpu/gpu_process_host.cc:879: const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params) { On 2014/01/14 01:11:52, jln wrote: ...
6 years, 11 months ago (2014-01-14 20:02:41 UTC) #16
jln (very slow on Chromium)
*_messages.h lgtm. I have started a thread on security-dev to find a better way to ...
6 years, 11 months ago (2014-01-14 21:52:31 UTC) #17
Yufeng Shen (Slow to review)
On 2014/01/14 21:52:31, jln wrote: > *_messages.h lgtm. > > I have started a thread ...
6 years, 11 months ago (2014-01-14 22:33:50 UTC) #18
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/123563002/diff/580001/content/browser/gpu/gpu_process_host.cc File content/browser/gpu/gpu_process_host.cc (right): https://codereview.chromium.org/123563002/diff/580001/content/browser/gpu/gpu_process_host.cc#newcode884 content/browser/gpu/gpu_process_host.cc:884: << " size " << params.latency_info.size() << " is ...
6 years, 11 months ago (2014-01-15 06:41:29 UTC) #19
Yufeng Shen (Slow to review)
https://codereview.chromium.org/123563002/diff/580001/content/browser/gpu/gpu_process_host.cc File content/browser/gpu/gpu_process_host.cc (right): https://codereview.chromium.org/123563002/diff/580001/content/browser/gpu/gpu_process_host.cc#newcode884 content/browser/gpu/gpu_process_host.cc:884: << " size " << params.latency_info.size() << " is ...
6 years, 11 months ago (2014-01-15 19:44:30 UTC) #20
Ken Russell (switch to Gerrit)
Thanks for the cleanup. LGTM https://codereview.chromium.org/123563002/diff/910001/ui/events/latency_info.h File ui/events/latency_info.h (right): https://codereview.chromium.org/123563002/diff/910001/ui/events/latency_info.h#newcode143 ui/events/latency_info.h:143: static const unsigned int ...
6 years, 11 months ago (2014-01-16 02:05:13 UTC) #21
Yufeng Shen (Slow to review)
https://codereview.chromium.org/123563002/diff/910001/ui/events/latency_info.h File ui/events/latency_info.h (right): https://codereview.chromium.org/123563002/diff/910001/ui/events/latency_info.h#newcode143 ui/events/latency_info.h:143: static const unsigned int kMaxLatencyInfoNumber = 100; On 2014/01/16 ...
6 years, 11 months ago (2014-01-16 03:33:16 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miletus@chromium.org/123563002/960002
6 years, 11 months ago (2014-01-16 03:34:17 UTC) #23
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=45023
6 years, 11 months ago (2014-01-16 03:55:33 UTC) #24
Yufeng Shen (Slow to review)
On 2014/01/16 03:55:33, I haz the power (commit-bot) wrote: > Retried try job too often ...
6 years, 11 months ago (2014-01-16 04:53:58 UTC) #25
jschuh
On 2014/01/16 04:53:58, Yufeng Shen wrote: > On 2014/01/16 03:55:33, I haz the power (commit-bot) ...
6 years, 11 months ago (2014-01-16 07:35:39 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miletus@chromium.org/123563002/960002
6 years, 11 months ago (2014-01-16 07:39:25 UTC) #27
commit-bot: I haz the power
Failed to apply patch for content/browser/aura/software_browser_compositor_output_surface.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; can't find ...
6 years, 11 months ago (2014-01-16 07:39:35 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/123563002/960002
6 years, 11 months ago (2014-01-16 16:23:06 UTC) #29
commit-bot: I haz the power
6 years, 11 months ago (2014-01-16 18:25:47 UTC) #30
Message was sent while issue was closed.
Change committed as 245260

Powered by Google App Engine
This is Rietveld 408576698