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

Issue 2888043004: [cc] Add and plumb CFS::DidNotProduceFrame. (Closed)

Created:
3 years, 7 months ago by Eric Seckler
Modified:
3 years, 7 months ago
CC:
Aaron Boodman, abarth-chromium, blink-reviews, blink-reviews-platform-graphics_chromium.org, brianderson, Rik, cc-bugs_chromium.org, chromium-reviews, creis+watch_chromium.org, danakj+watch_chromium.org, darin (slow to review), darin-cc_chromium.org, dshwang, drott+blinkwatch_chromium.org, krit, fmalita+watch_chromium.org, jam, jbauman+watch_chromium.org, Justin Novosad, kalyank, kinuko+watch, mac-reviews_chromium.org, mfoltz+watch_chromium.org, miu+watch_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, nona+watch_chromium.org, pdr+graphicswatchlist_chromium.org, piman+watch_chromium.org, qsr+mojo_chromium.org, rjkroege, rwlbuis, sadrul, scheduler-bugs_chromium.org, Stephen Chennney, shuchen+watch_chromium.org, Sami, James Su, viettrungluu+watch_chromium.org, xjz+watch_chromium.org, yusukes+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[cc] Add and plumb CFS::DidNotProduceFrame. We're planning to remove BeginFrameAcks from BFS::DidFinishFrame. Instead, we plumb them through the CompositorFrameSink via SubmitCompositorFrame (this plumbing exists already) and DidNotProduceFrame (new in this patch). The DidFinishFrame interface (and remaining unit tests) will be updated separately. The patch also renames existing BeginFrameDidNotSwap methods/IPCs to unify the naming across the code base. BUG=697086 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.linux:linux_site_isolation TBR=junov@chromium.org Review-Url: https://codereview.chromium.org/2888043004 Cr-Commit-Position: refs/heads/master@{#473577} Committed: https://chromium.googlesource.com/chromium/src/+/9404a23e0073ff0f04f156963ffe99fba1c63a4a

Patch Set 1 #

Total comments: 6

Patch Set 2 : remove ExternalBFS::OnDidFinishFrame and related ack tracking. #

Total comments: 8

Patch Set 3 : address nits, rename to DidNotProduceFrame. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+182 lines, -594 lines) Patch
M cc/ipc/mojo_compositor_frame_sink.mojom View 1 2 1 chunk +1 line, -1 line 0 comments Download
M cc/output/compositor_frame_sink.h View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M cc/output/compositor_frame_sink_unittest.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M cc/scheduler/begin_frame_source.h View 1 2 chunks +0 lines, -49 lines 0 comments Download
M cc/scheduler/begin_frame_source.cc View 1 7 chunks +1 line, -140 lines 0 comments Download
M cc/scheduler/begin_frame_source_unittest.cc View 1 3 chunks +0 lines, -278 lines 0 comments Download
M cc/scheduler/scheduler.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M cc/scheduler/scheduler.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M cc/scheduler/scheduler_unittest.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M cc/surfaces/compositor_frame_sink_support.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M cc/surfaces/compositor_frame_sink_support.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M cc/surfaces/direct_compositor_frame_sink.h View 1 2 2 chunks +1 line, -1 line 0 comments Download
M cc/surfaces/direct_compositor_frame_sink.cc View 1 2 2 chunks +6 lines, -6 lines 0 comments Download
M cc/surfaces/direct_compositor_frame_sink_unittest.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M cc/surfaces/surface_synchronization_unittest.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M cc/test/fake_compositor_frame_sink.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M cc/test/fake_compositor_frame_sink.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M cc/test/test_compositor_frame_sink.h View 1 2 2 chunks +1 line, -1 line 0 comments Download
M cc/test/test_compositor_frame_sink.cc View 1 2 3 chunks +9 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M cc/trees/proxy_impl.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/proxy_impl.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M cc/trees/single_thread_proxy.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/single_thread_proxy.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M components/exo/surface.cc View 1 2 1 chunk +8 lines, -3 lines 0 comments Download
M components/viz/frame_sinks/gpu_compositor_frame_sink.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M components/viz/frame_sinks/gpu_compositor_frame_sink.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M components/viz/frame_sinks/gpu_root_compositor_frame_sink.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M components/viz/frame_sinks/gpu_root_compositor_frame_sink.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/compositor/gpu_vsync_begin_frame_source.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/compositor/gpu_vsync_begin_frame_source.cc View 1 1 chunk +0 lines, -2 lines 0 comments Download
M content/browser/frame_host/render_widget_host_view_child_frame.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/browser/frame_host/render_widget_host_view_child_frame.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/frame_host/render_widget_host_view_child_frame_unittest.cc View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M content/browser/renderer_host/browser_compositor_view_mac.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/browser_compositor_view_mac.mm View 1 2 1 chunk +2 lines, -3 lines 0 comments Download
M content/browser/renderer_host/delegated_frame_host.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/delegated_frame_host.cc View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.h View 1 2 2 chunks +1 line, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 5 chunks +15 lines, -7 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura_unittest.cc View 1 2 4 chunks +8 lines, -8 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_base.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M content/common/view_messages.h View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M content/renderer/android/synchronous_compositor_frame_sink.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/android/synchronous_compositor_frame_sink.cc View 1 2 2 chunks +8 lines, -0 lines 0 comments Download
M content/renderer/gpu/compositor_external_begin_frame_source.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/gpu/compositor_external_begin_frame_source.cc View 1 1 chunk +0 lines, -8 lines 0 comments Download
M content/renderer/gpu/renderer_compositor_frame_sink.h View 1 2 2 chunks +1 line, -1 line 0 comments Download
M content/renderer/gpu/renderer_compositor_frame_sink.cc View 1 2 3 chunks +8 lines, -8 lines 0 comments Download
M services/ui/public/cpp/client_compositor_frame_sink.h View 1 2 2 chunks +1 line, -1 line 0 comments Download
M services/ui/public/cpp/client_compositor_frame_sink.cc View 1 2 3 chunks +8 lines, -6 lines 0 comments Download
M services/ui/ws/compositor_frame_sink_client_binding.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M services/ui/ws/compositor_frame_sink_client_binding.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M services/ui/ws/frame_generator.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M services/ui/ws/frame_generator_unittest.cc View 1 2 5 chunks +12 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ui/android/delegated_frame_host_android.h View 1 2 2 chunks +1 line, -1 line 0 comments Download
M ui/android/delegated_frame_host_android.cc View 1 2 2 chunks +5 lines, -6 lines 0 comments Download
M ui/aura/local/compositor_frame_sink_local.h View 1 2 2 chunks +1 line, -1 line 0 comments Download
M ui/aura/local/compositor_frame_sink_local.cc View 1 2 3 chunks +12 lines, -8 lines 0 comments Download

Messages

Total messages: 49 (37 generated)
Eric Seckler
Sunny, PTAL. Also adding owners: +mkwst for IPC name change. +fsamuel for services/ui/ and components/viz/ ...
3 years, 7 months ago (2017-05-18 09:39:28 UTC) #10
piman
lgtm https://codereview.chromium.org/2888043004/diff/1/cc/surfaces/direct_compositor_frame_sink.cc File cc/surfaces/direct_compositor_frame_sink.cc (right): https://codereview.chromium.org/2888043004/diff/1/cc/surfaces/direct_compositor_frame_sink.cc#newcode162 cc/surfaces/direct_compositor_frame_sink.cc:162: void DirectCompositorFrameSink::OnDidFinishFrame(const BeginFrameAck& ack) {} nit: Are there ...
3 years, 7 months ago (2017-05-18 19:16:38 UTC) #11
reveman
components/exo lgtm
3 years, 7 months ago (2017-05-18 19:27:04 UTC) #12
Fady Samuel
lgtm
3 years, 7 months ago (2017-05-18 20:14:39 UTC) #13
brianderson
lgtm. I missed the bikeshed naming discussion earlier, but my vote would be for "SkipCompositorFrame".
3 years, 7 months ago (2017-05-18 23:41:58 UTC) #15
sadrul
rs lgtm
3 years, 7 months ago (2017-05-19 03:55:04 UTC) #16
Eric Seckler
On 2017/05/18 23:41:58, brianderson wrote: > I missed the bikeshed naming discussion earlier, but my ...
3 years, 7 months ago (2017-05-19 08:13:37 UTC) #17
Mike West
IPC rename LGTM.
3 years, 7 months ago (2017-05-21 05:11:50 UTC) #22
sunnyps
lgtm % nits https://codereview.chromium.org/2888043004/diff/1/cc/ipc/mojo_compositor_frame_sink.mojom File cc/ipc/mojo_compositor_frame_sink.mojom (right): https://codereview.chromium.org/2888043004/diff/1/cc/ipc/mojo_compositor_frame_sink.mojom#newcode40 cc/ipc/mojo_compositor_frame_sink.mojom:40: BeginFrameDidNotProduceFrame(cc.mojom.BeginFrameAck ack); nit: My suggestion was ...
3 years, 7 months ago (2017-05-22 07:17:13 UTC) #23
Eric Seckler
Thanks everyone! https://codereview.chromium.org/2888043004/diff/1/cc/ipc/mojo_compositor_frame_sink.mojom File cc/ipc/mojo_compositor_frame_sink.mojom (right): https://codereview.chromium.org/2888043004/diff/1/cc/ipc/mojo_compositor_frame_sink.mojom#newcode40 cc/ipc/mojo_compositor_frame_sink.mojom:40: BeginFrameDidNotProduceFrame(cc.mojom.BeginFrameAck ack); On 2017/05/22 07:17:12, sunnyps wrote: ...
3 years, 7 months ago (2017-05-22 11:29:58 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2888043004/100001
3 years, 7 months ago (2017-05-22 14:42:25 UTC) #46
commit-bot: I haz the power
3 years, 7 months ago (2017-05-22 14:50:02 UTC) #49
Message was sent while issue was closed.
Committed patchset #3 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/9404a23e0073ff0f04f156963ffe...

Powered by Google App Engine
This is Rietveld 408576698