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

Issue 2786643002: [exo]CompositorFrameSinkHolder calls WillDraw in DidReceiveCompositorFrameAck (Closed)

Created:
3 years, 8 months ago by Alex Z.
Modified:
3 years, 8 months ago
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[exo]CompositorFrameSinkHolder calls WillDraw in DidReceiveCompositorFrameAck CommitSurfaceHierarchy() moves pending_frame_callbacks_ into frame_callbacks_ before calling UpdateSurface() so that the ack doesn't arrive too early. exo::Surface is the only class which needs MojoCompositorFrameSinkClient::WillDrawSurface(). With this change, we can remove WillDrawSurface from the mojo interface and reduce IPC overhead. BUG=671202, 709076 Review-Url: https://codereview.chromium.org/2786643002 Cr-Commit-Position: refs/heads/master@{#462678} Committed: https://chromium.googlesource.com/chromium/src/+/09b06cad7bc4b38fa64142b16a0c6adcbcc875b4

Patch Set 1 #

Patch Set 2 : Frame Callbacks Are Added to Surface::frame_callbacks_ Directly #

Patch Set 3 : UpdateSurface After Moving Frame Callbacks #

Patch Set 4 : Move Frame Callbacks Before UpdateSurface #

Patch Set 5 : Move Presentation Callbacks Before UpdateSurface #

Total comments: 5

Patch Set 6 : Address Nit #

Patch Set 7 : Address A Comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -17 lines) Patch
M components/exo/compositor_frame_sink_holder.cc View 1 2 3 4 5 6 2 chunks +3 lines, -5 lines 0 comments Download
M components/exo/surface.h View 1 2 3 4 5 6 1 chunk +3 lines, -2 lines 0 comments Download
M components/exo/surface.cc View 1 2 3 4 5 6 3 chunks +8 lines, -8 lines 0 comments Download
M components/exo/surface_unittest.cc View 1 2 3 4 5 6 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 29 (20 generated)
reveman
lgtm with nit https://codereview.chromium.org/2786643002/diff/80001/components/exo/compositor_frame_sink_holder.cc File components/exo/compositor_frame_sink_holder.cc (right): https://codereview.chromium.org/2786643002/diff/80001/components/exo/compositor_frame_sink_holder.cc#newcode44 components/exo/compositor_frame_sink_holder.cc:44: // TODO(staraz): Implement this nit: remove ...
3 years, 8 months ago (2017-04-06 20:42:04 UTC) #9
Alex Z.
https://codereview.chromium.org/2786643002/diff/80001/components/exo/compositor_frame_sink_holder.cc File components/exo/compositor_frame_sink_holder.cc (right): https://codereview.chromium.org/2786643002/diff/80001/components/exo/compositor_frame_sink_holder.cc#newcode44 components/exo/compositor_frame_sink_holder.cc:44: // TODO(staraz): Implement this On 2017/04/06 20:42:04, reveman wrote: ...
3 years, 8 months ago (2017-04-06 20:49:14 UTC) #11
Fady Samuel
https://codereview.chromium.org/2786643002/diff/80001/components/exo/compositor_frame_sink_holder.cc File components/exo/compositor_frame_sink_holder.cc (right): https://codereview.chromium.org/2786643002/diff/80001/components/exo/compositor_frame_sink_holder.cc#newcode46 components/exo/compositor_frame_sink_holder.cc:46: surface_->WillDraw(); Rename WillDraw to DidReceiveCompositorFrameAck?
3 years, 8 months ago (2017-04-06 20:52:33 UTC) #14
reveman
https://codereview.chromium.org/2786643002/diff/80001/components/exo/compositor_frame_sink_holder.cc File components/exo/compositor_frame_sink_holder.cc (right): https://codereview.chromium.org/2786643002/diff/80001/components/exo/compositor_frame_sink_holder.cc#newcode46 components/exo/compositor_frame_sink_holder.cc:46: surface_->WillDraw(); On 2017/04/06 at 20:52:33, Fady Samuel wrote: > ...
3 years, 8 months ago (2017-04-06 21:09:06 UTC) #15
Alex Z.
https://codereview.chromium.org/2786643002/diff/80001/components/exo/compositor_frame_sink_holder.cc File components/exo/compositor_frame_sink_holder.cc (right): https://codereview.chromium.org/2786643002/diff/80001/components/exo/compositor_frame_sink_holder.cc#newcode46 components/exo/compositor_frame_sink_holder.cc:46: surface_->WillDraw(); On 2017/04/06 20:52:33, Fady Samuel wrote: > Rename ...
3 years, 8 months ago (2017-04-06 21:11:12 UTC) #17
Fady Samuel
LGTM. Please specify the bug number.
3 years, 8 months ago (2017-04-06 21:18:49 UTC) #19
Alex Z.
On 2017/04/06 21:18:49, Fady Samuel wrote: > LGTM. Please specify the bug number. Done.
3 years, 8 months ago (2017-04-06 21:23:45 UTC) #21
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/2786643002/120001
3 years, 8 months ago (2017-04-06 23:06:15 UTC) #26
commit-bot: I haz the power
3 years, 8 months ago (2017-04-06 23:28:18 UTC) #29
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/09b06cad7bc4b38fa64142b16a0c...

Powered by Google App Engine
This is Rietveld 408576698