Chromium Code Reviews
Descriptionozone: introduce OverlayCheckReturn_Params
OverlayCheck_Params.is_overlay_candidate is used for both input
and output of validation. GPU callback slightly changes this value,
which is the member of the key of the cache map. It can cause subtle bugs.
For example, renderer checks if video layer is overlayable with
"is_overlay_candidate = true", but GPU process backend responds
"is_overlay_candidate = false", so the callback changes the key value.
At next time, renderer cannot find the result in the cache and request
overlay validation to GPU process again.
To resolve it as well as make the code understandable, this CL introduces
OverlayCheckReturn_Params as the output of validation.
BUG=683347
TEST=Run chrome on samus, ozone_unittests
Review-Url: https://codereview.chromium.org/2896173002
Cr-Commit-Position: refs/heads/master@{#477128}
Committed: https://chromium.googlesource.com/chromium/src/+/8ab26031647c8c612b1a051868fdc18c5d7db3f9
Patch Set 1 #Patch Set 2 : refactoring #
Total comments: 5
Patch Set 3 : ozone: fix broken overlay promotion. #
Total comments: 2
Messages
Total messages: 36 (21 generated)
|