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

Issue 2896173002: ozone: introduce OverlayCheckReturn_Params (Closed)

Created:
3 years, 7 months ago by dshwang
Modified:
3 years, 6 months ago
CC:
chromium-reviews, kalyank, piman+watch_chromium.org, ozone-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

ozone: 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
Unified diffs Side-by-side diffs Delta from patch set Stats (+162 lines, -112 lines) Patch
M ui/ozone/common/gpu/ozone_gpu_message_params.h View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
M ui/ozone/common/gpu/ozone_gpu_messages.h View 1 2 3 chunks +10 lines, -2 lines 0 comments Download
M ui/ozone/platform/drm/gpu/drm_overlay_validator.h View 2 chunks +2 lines, -1 line 0 comments Download
M ui/ozone/platform/drm/gpu/drm_overlay_validator.cc View 1 2 4 chunks +26 lines, -23 lines 0 comments Download
M ui/ozone/platform/drm/gpu/drm_overlay_validator_unittest.cc View 1 2 13 chunks +42 lines, -38 lines 0 comments Download
M ui/ozone/platform/drm/gpu/drm_thread.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M ui/ozone/platform/drm/gpu/drm_thread.cc View 1 1 chunk +4 lines, -2 lines 0 comments Download
M ui/ozone/platform/drm/gpu/drm_thread_message_proxy.h View 1 2 chunks +3 lines, -1 line 0 comments Download
M ui/ozone/platform/drm/gpu/drm_thread_message_proxy.cc View 1 1 chunk +4 lines, -2 lines 0 comments Download
M ui/ozone/platform/drm/gpu/drm_window.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M ui/ozone/platform/drm/gpu/drm_window.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/ozone/platform/drm/host/drm_gpu_platform_support_host.h View 1 chunk +2 lines, -1 line 0 comments Download
M ui/ozone/platform/drm/host/drm_gpu_platform_support_host.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M ui/ozone/platform/drm/host/drm_overlay_manager.h View 2 chunks +7 lines, -3 lines 0 comments Download
M ui/ozone/platform/drm/host/drm_overlay_manager.cc View 1 2 2 chunks +40 lines, -31 lines 2 comments Download
M ui/ozone/platform/drm/mus_thread_proxy.h View 1 chunk +2 lines, -1 line 0 comments Download
M ui/ozone/platform/drm/mus_thread_proxy.cc View 1 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 36 (21 generated)
dshwang
spang, alexst: could you review? current ozone hardly promote overlay. This CL fixes it.
3 years, 7 months ago (2017-05-23 05:18:33 UTC) #4
Daniele Castagna
On 2017/05/23 at 05:18:33, dongseong.hwang wrote: > spang, alexst: could you review? current ozone hardly ...
3 years, 7 months ago (2017-05-23 06:44:58 UTC) #7
spang
+dnicoara
3 years, 6 months ago (2017-05-25 23:02:32 UTC) #10
dshwang
On 2017/05/23 06:44:58, Daniele Castagna wrote: > On 2017/05/23 at 05:18:33, dongseong.hwang wrote: > > ...
3 years, 6 months ago (2017-05-26 22:33:54 UTC) #11
dnicoara
On 2017/05/26 22:33:54, dshwang wrote: > On 2017/05/23 06:44:58, Daniele Castagna wrote: > > On ...
3 years, 6 months ago (2017-05-29 15:17:57 UTC) #12
dshwang
Thank you for reviewing. I changes this CL as refactorying CL. Could you review again? ...
3 years, 6 months ago (2017-05-31 21:05:11 UTC) #17
dshwang
dnicoara, could you review this clean-up refactorying?
3 years, 6 months ago (2017-06-01 19:20:35 UTC) #20
dnicoara
On 2017/06/01 19:20:35, dshwang wrote: > dnicoara, could you review this clean-up refactorying? Yes, will ...
3 years, 6 months ago (2017-06-01 19:28:54 UTC) #21
dnicoara
https://codereview.chromium.org/2896173002/diff/20001/ui/ozone/common/gpu/ozone_gpu_message_params.h File ui/ozone/common/gpu/ozone_gpu_message_params.h (right): https://codereview.chromium.org/2896173002/diff/20001/ui/ozone/common/gpu/ozone_gpu_message_params.h#newcode81 ui/ozone/common/gpu/ozone_gpu_message_params.h:81: enum Status { Pending, Able, Not, Last = Not ...
3 years, 6 months ago (2017-06-02 21:31:25 UTC) #22
dshwang
dnicoara, thx for reviewing. could you review again? https://codereview.chromium.org/2896173002/diff/20001/ui/ozone/common/gpu/ozone_gpu_message_params.h File ui/ozone/common/gpu/ozone_gpu_message_params.h (right): https://codereview.chromium.org/2896173002/diff/20001/ui/ozone/common/gpu/ozone_gpu_message_params.h#newcode81 ui/ozone/common/gpu/ozone_gpu_message_params.h:81: enum ...
3 years, 6 months ago (2017-06-02 23:59:00 UTC) #25
dnicoara
lgtm +kenrb@ for security review https://codereview.chromium.org/2896173002/diff/40001/ui/ozone/platform/drm/host/drm_overlay_manager.cc File ui/ozone/platform/drm/host/drm_overlay_manager.cc (right): https://codereview.chromium.org/2896173002/diff/40001/ui/ozone/platform/drm/host/drm_overlay_manager.cc#newcode66 ui/ozone/platform/drm/host/drm_overlay_manager.cc:66: overlay_params.back().is_overlay_candidate = false; On ...
3 years, 6 months ago (2017-06-05 21:05:09 UTC) #29
kenrb
ipc lgtm
3 years, 6 months ago (2017-06-05 21:20:01 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/2896173002/40001
3 years, 6 months ago (2017-06-05 23:40:55 UTC) #32
dshwang
thank you for reviewing!
3 years, 6 months ago (2017-06-05 23:42:05 UTC) #33
commit-bot: I haz the power
3 years, 6 months ago (2017-06-06 00:14:00 UTC) #36
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/8ab26031647c8c612b1a051868fd...

Powered by Google App Engine
This is Rietveld 408576698