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

Issue 2444563002: cc: Remove "SwapBuffers" naming from LayerTreeHostSingleThreadClient (Closed)

Created:
4 years, 2 months ago by danakj
Modified:
4 years, 2 months ago
CC:
chromium-reviews, sadrul, sievers+watch_chromium.org, nyquist+watch-blimp_chromium.org, kmarshall+watch-blimp_chromium.org, shaktisahu+watch-blimp_chromium.org, maniscalco+watch-blimp_chromium.org, bgoldman+watch-blimp_chromium.org, jam, gcasto+watch-blimp_chromium.org, jbauman+watch_chromium.org, marcinjb+watch-blimp_chromium.org, jessicag+watch-blimp_chromium.org, darin-cc_chromium.org, lethalantidote+watch-blimp_chromium.org, blink-reviews, kalyank, scf+watch-blimp_chromium.org, mlamouri+watch-content_chromium.org, piman+watch_chromium.org, danakj+watch_chromium.org, khushalsagar+watch-blimp_chromium.org, anandc+watch-blimp_chromium.org, sriramsr+watch-blimp_chromium.org, Ian Vollick, tfarina, steimel+watch-blimp_chromium.org, perumaal+watch-blimp_chromium.org, mac-reviews_chromium.org, cc-bugs_chromium.org, dtrainor+watch-blimp_chromium.org, enne (OOO)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Remove "SwapBuffers" naming from LayerTreeHostSingleThreadClient And clean up uses of this interface. DidAbortSwapBuffers becomes DidLoseCompositorFrameSink. Android uses this to tell the browser that it has no pending frames and can make a new frame. Ash was using this to end crossfade maximize animations. I've removed this and dropped "aborting" compositing from the Compositor observer. DidPostSwapBuffers becomes DidSubmitCompositorFrame which represents itself better. RenderWidgetCompositor was telling RenderWidget about this just to make a trace event, so deleted that. DidReceiveCompositorFrameAck is duplicated in LayerTreeHostClient and was not actually called on this interface anymore, so just deleted it. R=piman@chromium.org TBR=sky BUG=606056 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel Committed: https://crrev.com/6c872fc0e1e9b381615f325e33463e16f936960c Cr-Commit-Position: refs/heads/master@{#426969}

Patch Set 1 #

Total comments: 7

Patch Set 2 : swapsinglethread: remove-compositor-observer #

Patch Set 3 : swapsinglethread: fix-name-in-browsertest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -154 lines) Patch
M ash/wm/window_animations.cc View 1 2 chunks +3 lines, -18 lines 0 comments Download
M blimp/client/support/compositor/blimp_embedder_compositor.h View 1 chunk +2 lines, -2 lines 0 comments Download
M cc/test/layer_tree_test.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M cc/test/stub_layer_tree_host_single_thread_client.h View 1 chunk +2 lines, -3 lines 0 comments Download
M cc/trees/layer_tree_host_single_thread_client.h View 1 chunk +11 lines, -9 lines 0 comments Download
M cc/trees/single_thread_proxy.h View 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/single_thread_proxy.cc View 8 chunks +8 lines, -8 lines 0 comments Download
M content/browser/renderer_host/browser_compositor_view_mac.mm View 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/renderer_host/compositor_impl_android.h View 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/compositor_impl_android.cc View 2 chunks +4 lines, -9 lines 0 comments Download
M content/browser/renderer_host/delegated_frame_host.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/renderer_host/delegated_frame_host.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.h View 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 2 chunks +5 lines, -8 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor_delegate.h View 2 chunks +3 lines, -12 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor_unittest.cc View 1 chunk +1 line, -4 lines 0 comments Download
M content/renderer/render_widget.h View 1 chunk +1 line, -4 lines 0 comments Download
M content/renderer/render_widget.cc View 2 chunks +2 lines, -19 lines 0 comments Download
M content/renderer/render_widget_browsertest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/testing/WebLayerTreeViewImplForTesting.h View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/compositor/compositor.h View 1 chunk +4 lines, -4 lines 0 comments Download
M ui/compositor/compositor.cc View 2 chunks +1 line, -11 lines 0 comments Download
M ui/compositor/compositor_observer.h View 1 chunk +0 lines, -3 lines 0 comments Download
M ui/compositor/layer_unittest.cc View 3 chunks +4 lines, -21 lines 0 comments Download
M ui/compositor/test/draw_waiter_for_test.h View 1 chunk +0 lines, -1 line 0 comments Download
M ui/compositor/test/draw_waiter_for_test.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M ui/views/controls/scroll_view_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 33 (19 generated)
danakj
piman: please review jamescook: ash owners khushalsagar: blimp owners
4 years, 2 months ago (2016-10-21 23:23:49 UTC) #7
Khushal
lgtm
4 years, 2 months ago (2016-10-21 23:24:41 UTC) #8
James Cook
ash lgtm
4 years, 2 months ago (2016-10-21 23:31:40 UTC) #9
danakj
+sky for ui/views/ and WebKit/ (top level owner) who I'll TBR on those trivial bits.
4 years, 2 months ago (2016-10-21 23:32:44 UTC) #11
oshima
drive-by nit: https://codereview.chromium.org/2444563002/diff/1/ash/wm/window_animations.cc File ash/wm/window_animations.cc (right): https://codereview.chromium.org/2444563002/diff/1/ash/wm/window_animations.cc#newcode278 ash/wm/window_animations.cc:278: void OnCompositingShuttingDown(ui::Compositor* compositor) override {} nit: looks ...
4 years, 2 months ago (2016-10-21 23:33:25 UTC) #13
danakj
https://codereview.chromium.org/2444563002/diff/1/content/renderer/render_widget.cc File content/renderer/render_widget.cc (left): https://codereview.chromium.org/2444563002/diff/1/content/renderer/render_widget.cc#oldcode815 content/renderer/render_widget.cc:815: ScheduleComposite(); This would possibly prevent context recovery because we ...
4 years, 2 months ago (2016-10-21 23:36:52 UTC) #14
danakj
https://codereview.chromium.org/2444563002/diff/1/ash/wm/window_animations.cc File ash/wm/window_animations.cc (right): https://codereview.chromium.org/2444563002/diff/1/ash/wm/window_animations.cc#newcode278 ash/wm/window_animations.cc:278: void OnCompositingShuttingDown(ui::Compositor* compositor) override {} On 2016/10/21 23:33:25, oshima ...
4 years, 2 months ago (2016-10-21 23:37:42 UTC) #15
piman
https://codereview.chromium.org/2444563002/diff/1/content/browser/renderer_host/compositor_impl_android.cc File content/browser/renderer_host/compositor_impl_android.cc (left): https://codereview.chromium.org/2444563002/diff/1/content/browser/renderer_host/compositor_impl_android.cc#oldcode795 content/browser/renderer_host/compositor_impl_android.cc:795: host_->SetNeedsCommit(); What makes it ok to remove? Is there ...
4 years, 2 months ago (2016-10-21 23:44:22 UTC) #18
danakj
https://codereview.chromium.org/2444563002/diff/1/content/browser/renderer_host/compositor_impl_android.cc File content/browser/renderer_host/compositor_impl_android.cc (left): https://codereview.chromium.org/2444563002/diff/1/content/browser/renderer_host/compositor_impl_android.cc#oldcode795 content/browser/renderer_host/compositor_impl_android.cc:795: host_->SetNeedsCommit(); On 2016/10/21 23:44:22, piman wrote: > What makes ...
4 years, 2 months ago (2016-10-21 23:46:20 UTC) #19
piman
lgtm
4 years, 2 months ago (2016-10-21 23:47:17 UTC) #20
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/2444563002/20001
4 years, 2 months ago (2016-10-21 23:48:20 UTC) #25
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/2444563002/40001
4 years, 2 months ago (2016-10-21 23:52:14 UTC) #29
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-10-22 04:30:16 UTC) #31
commit-bot: I haz the power
4 years, 2 months ago (2016-10-22 04:34:47 UTC) #33
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/6c872fc0e1e9b381615f325e33463e16f936960c
Cr-Commit-Position: refs/heads/master@{#426969}

Powered by Google App Engine
This is Rietveld 408576698