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

Issue 2458743002: Switching to base::Optional<CompositorFrame> in Android's synchronous compositor IPC messages (Closed)

Created:
4 years, 1 month ago by Saman Sami
Modified:
4 years, 1 month ago
Reviewers:
boliu, dcheng
CC:
chromium-reviews, jam, darin-cc_chromium.org, mlamouri+watch-content_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Switching to base::Optional<CompositorFrame> in Android's synchronous compositor IPC messages In an effort to eliminate DelegatedFrameData, we need to get rid of the dependecy on CompositorFrame::delegated_frame_data for figuring out whether a frame swap has been performed or not. We now pass an empty base::Optional<CompositorFrame> when a swap doesn't happen. BUG=653741 Committed: https://crrev.com/9641873cb887a3e1179162eef6463f000355f9b1 Cr-Commit-Position: refs/heads/master@{#428142}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Using base::Optional instead of boolean #

Total comments: 2

Patch Set 3 : Fixed #

Patch Set 4 : Fixed (had removed a line by mistake) #

Total comments: 1

Patch Set 5 : Style #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -20 lines) Patch
M content/browser/android/synchronous_compositor_browser_filter.cc View 1 2 chunks +4 lines, -3 lines 0 comments Download
M content/browser/android/synchronous_compositor_host.cc View 1 2 3 4 3 chunks +6 lines, -9 lines 0 comments Download
M content/common/android/sync_compositor_messages.h View 1 3 chunks +3 lines, -2 lines 0 comments Download
M content/renderer/android/synchronous_compositor_proxy.h View 1 2 chunks +3 lines, -2 lines 0 comments Download
M content/renderer/android/synchronous_compositor_proxy.cc View 1 2 2 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 39 (28 generated)
Saman Sami
I pulled out the synchronous compositor changes for easier reviewing.
4 years, 1 month ago (2016-10-27 18:03:22 UTC) #2
boliu
I think the Optional suggestion makes the other comments moot https://codereview.chromium.org/2458743002/diff/1/content/browser/android/synchronous_compositor_host.cc File content/browser/android/synchronous_compositor_host.cc (right): https://codereview.chromium.org/2458743002/diff/1/content/browser/android/synchronous_compositor_host.cc#newcode126 ...
4 years, 1 month ago (2016-10-27 18:11:47 UTC) #9
Saman Sami
PTAL I'm now using base::Optional instead of bool. The code is much cleaner now. I ...
4 years, 1 month ago (2016-10-27 19:22:15 UTC) #14
boliu
https://codereview.chromium.org/2458743002/diff/20001/content/browser/android/synchronous_compositor_host.cc File content/browser/android/synchronous_compositor_host.cc (right): https://codereview.chromium.org/2458743002/diff/20001/content/browser/android/synchronous_compositor_host.cc#newcode130 content/browser/android/synchronous_compositor_host.cc:130: !compositor_frame) { not quite the same. ProcessHardwareFrame can be ...
4 years, 1 month ago (2016-10-27 19:52:16 UTC) #20
Saman Sami
PTAL I applied your suggestions.
4 years, 1 month ago (2016-10-27 20:20:15 UTC) #25
boliu
lgtm % style I recommend dcheng for ipc review https://codereview.chromium.org/2458743002/diff/60001/content/browser/android/synchronous_compositor_host.cc File content/browser/android/synchronous_compositor_host.cc (right): https://codereview.chromium.org/2458743002/diff/60001/content/browser/android/synchronous_compositor_host.cc#newcode135 content/browser/android/synchronous_compositor_host.cc:135: ...
4 years, 1 month ago (2016-10-27 20:23:07 UTC) #26
dcheng
ipc lgtm
4 years, 1 month ago (2016-10-27 21:12:43 UTC) #30
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/2458743002/80001
4 years, 1 month ago (2016-10-27 21:17:27 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/2458743002/80001
4 years, 1 month ago (2016-10-27 21:19:18 UTC) #35
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 1 month ago (2016-10-27 21:25:12 UTC) #37
commit-bot: I haz the power
4 years, 1 month ago (2016-10-27 21:28:35 UTC) #39
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/9641873cb887a3e1179162eef6463f000355f9b1
Cr-Commit-Position: refs/heads/master@{#428142}

Powered by Google App Engine
This is Rietveld 408576698