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

Issue 1546383002: sync compositor: Send ipc reply in swap (Closed)

Created:
4 years, 12 months ago by boliu
Modified:
4 years, 11 months ago
Reviewers:
hush (inactive)
CC:
chromium-reviews, mkwst+moarreviews-renderer_chromium.org, darin-cc_chromium.org, jam, mlamouri+watch-content_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

sync compositor: Send ipc reply in swap Refactor SynchronousCompositorOutputSurface to expose the SwapBuffers call to client. For IPC implementation, send the reply IPC inside SwapBuffers instead of waiting for OnDraw to return. This allows more code to run in parallel, since OnDraw generally calls PrepareTiles after DrawAndSwap; now PrepareTiles can run in parallel with IO/UI code. Depending on scheduling and available cores, this can save up to ~0.7ms per frame of waiting time on UI thread. BUG=545633 Committed: https://crrev.com/6c0ed631e1b36d36fec9a8e4cd83f6824ef58262 Cr-Commit-Position: refs/heads/master@{#367111}

Patch Set 1 #

Total comments: 8

Patch Set 2 : rebase + no swap fix #

Total comments: 2

Patch Set 3 : DeliverMessages #

Unified diffs Side-by-side diffs Delta from patch set Stats (+124 lines, -59 lines) Patch
M content/browser/android/in_process/synchronous_compositor_impl.h View 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/android/in_process/synchronous_compositor_impl.cc View 3 chunks +23 lines, -15 lines 0 comments Download
M content/renderer/android/synchronous_compositor_output_surface.h View 3 chunks +9 lines, -11 lines 0 comments Download
M content/renderer/android/synchronous_compositor_output_surface.cc View 7 chunks +9 lines, -14 lines 0 comments Download
M content/renderer/android/synchronous_compositor_proxy.h View 1 4 chunks +7 lines, -2 lines 0 comments Download
M content/renderer/android/synchronous_compositor_proxy.cc View 1 2 8 chunks +74 lines, -17 lines 0 comments Download

Messages

Total messages: 12 (3 generated)
boliu
around these days? ptal?
4 years, 12 months ago (2015-12-28 20:37:23 UTC) #2
hush (inactive)
https://codereview.chromium.org/1546383002/diff/1/content/browser/android/in_process/synchronous_compositor_impl.cc File content/browser/android/in_process/synchronous_compositor_impl.cc (right): https://codereview.chromium.org/1546383002/diff/1/content/browser/android/in_process/synchronous_compositor_impl.cc#newcode174 content/browser/android/in_process/synchronous_compositor_impl.cc:174: if (frame_holder_) just checking, because the DemandDrawHw is synchronous ...
4 years, 11 months ago (2015-12-29 19:42:17 UTC) #3
boliu
https://codereview.chromium.org/1546383002/diff/1/content/browser/android/in_process/synchronous_compositor_impl.cc File content/browser/android/in_process/synchronous_compositor_impl.cc (right): https://codereview.chromium.org/1546383002/diff/1/content/browser/android/in_process/synchronous_compositor_impl.cc#newcode174 content/browser/android/in_process/synchronous_compositor_impl.cc:174: if (frame_holder_) On 2015/12/29 19:42:17, hush wrote: > just ...
4 years, 11 months ago (2015-12-29 20:22:52 UTC) #4
hush (inactive)
https://codereview.chromium.org/1546383002/diff/20001/content/renderer/android/synchronous_compositor_proxy.cc File content/renderer/android/synchronous_compositor_proxy.cc (left): https://codereview.chromium.org/1546383002/diff/20001/content/renderer/android/synchronous_compositor_proxy.cc#oldcode202 content/renderer/android/synchronous_compositor_proxy.cc:202: DeliverMessages(); When swap happened and output surface DemandDrawHw returns ...
4 years, 11 months ago (2015-12-29 21:10:28 UTC) #5
boliu
https://codereview.chromium.org/1546383002/diff/20001/content/renderer/android/synchronous_compositor_proxy.cc File content/renderer/android/synchronous_compositor_proxy.cc (left): https://codereview.chromium.org/1546383002/diff/20001/content/renderer/android/synchronous_compositor_proxy.cc#oldcode202 content/renderer/android/synchronous_compositor_proxy.cc:202: DeliverMessages(); On 2015/12/29 21:10:28, hush wrote: > When swap ...
4 years, 11 months ago (2015-12-29 21:36:39 UTC) #6
hush (inactive)
lgtm
4 years, 11 months ago (2015-12-29 21:52:37 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1546383002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1546383002/40001
4 years, 11 months ago (2015-12-29 22:11:54 UTC) #9
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 11 months ago (2015-12-29 22:46:09 UTC) #10
commit-bot: I haz the power
4 years, 11 months ago (2015-12-29 22:47:03 UTC) #12
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/6c0ed631e1b36d36fec9a8e4cd83f6824ef58262
Cr-Commit-Position: refs/heads/master@{#367111}

Powered by Google App Engine
This is Rietveld 408576698