DescriptionExplicitly 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 #
Messages
Total messages: 13 (5 generated)
|