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

Issue 2856643002: Explicitly represent "no surface ID yet" in WMPI. (Closed)

Created:
3 years, 7 months ago by liberato (no reviews please)
Modified:
3 years, 7 months ago
Reviewers:
watk
CC:
chromium-reviews, feature-media-reviews_chromium.org, xjz+watch_chromium.org, miu+watch_chromium.org, apacible+watch_chromium.org, erickung+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Explicitly represent "no surface ID yet" in WMPI. Previously, WMPI used kNoSurfaceID to indicate both that a surface shouldn't be used for overlays on Android, and that no surface has been provided yet by the SurfaceManager. This could lead to a deadlock if the SurfaceManager actually does return kNoSurfaceID, and we're on pre-M Android. This CL represents the surfac ID as a base::Optional, with the unset state indicating that a call to SurfaceManager is pending. BUG= Review-Url: https://codereview.chromium.org/2856643002 Cr-Commit-Position: refs/heads/master@{#468455} Committed: https://chromium.googlesource.com/chromium/src/+/e8e3f43d16a81d9b13795f885d011e29bd8d4164

Patch Set 1 #

Total comments: 2

Patch Set 2 : made overlay_surface_id_ empty if !overlay_enabled_ #

Patch Set 3 : removed redundant check #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -6 lines) Patch
M media/blink/webmediaplayer_impl.h View 2 1 chunk +4 lines, -3 lines 0 comments Download
M media/blink/webmediaplayer_impl.cc View 1 2 3 chunks +4 lines, -3 lines 0 comments Download

Messages

Total messages: 13 (5 generated)
liberato (no reviews please)
decided to fix it as a separate CL since it's so small. if i use ...
3 years, 7 months ago (2017-05-01 18:56:43 UTC) #2
watk
On 2017/05/01 18:56:43, liberato wrote: > decided to fix it as a separate CL since ...
3 years, 7 months ago (2017-05-01 19:36:38 UTC) #3
liberato (no reviews please)
On 2017/05/01 19:36:38, watk wrote: > On 2017/05/01 18:56:43, liberato wrote: > > decided to ...
3 years, 7 months ago (2017-05-01 20:28:47 UTC) #4
liberato (no reviews please)
On 2017/05/01 20:28:47, liberato wrote: > On 2017/05/01 19:36:38, watk wrote: > > On 2017/05/01 ...
3 years, 7 months ago (2017-05-01 20:31:39 UTC) #5
watk
PS1 is fine with me if you prefer it. LGTM! https://codereview.chromium.org/2856643002/diff/1/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/2856643002/diff/1/media/blink/webmediaplayer_impl.cc#newcode1712 ...
3 years, 7 months ago (2017-05-01 20:34:58 UTC) #6
liberato (no reviews please)
thanks for the feedback. PS1 fits better into my refactor, so i'm going to go ...
3 years, 7 months ago (2017-05-01 20:42:42 UTC) #7
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/2856643002/40001
3 years, 7 months ago (2017-05-01 20:43:39 UTC) #10
commit-bot: I haz the power
3 years, 7 months ago (2017-05-01 22:23:29 UTC) #13
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/e8e3f43d16a81d9b13795f885d01...

Powered by Google App Engine
This is Rietveld 408576698