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

Issue 1157793004: ozone: Add overlay candidate implementation that queries support via IPC (Closed)

Created:
5 years, 7 months ago by achaulk
Modified:
5 years, 6 months ago
Reviewers:
dnicoara, nasko, spang
CC:
chromium-reviews, kalyank, piman+watch_chromium.org, ozone-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ozone: Add overlay candidate implementation that queries support via IPC Querying is done asynchronously, with a browser-side cache of responses. GPU will try out the requested overlay configuration and report if it was successful. Response delay is typically 1 frame but could be more in rare situations. A maximum cache size is imposed so that a video that's being moved/resized won't cause memory consumption to explode TBR=danakj (trivial enum change) Committed: https://crrev.com/ad89643990d9b2320960d1912695cc1418a3fdab Cr-Commit-Position: refs/heads/master@{#333073}

Patch Set 1 #

Total comments: 14

Patch Set 2 : fix leak, other comments #

Total comments: 14

Patch Set 3 : new comments #

Patch Set 4 : rebase #

Total comments: 9

Patch Set 5 : #

Total comments: 1

Patch Set 6 : unused fn decl #

Patch Set 7 : rebase #

Patch Set 8 : add missing license header #

Unified diffs Side-by-side diffs Delta from patch set Stats (+370 lines, -56 lines) Patch
M ui/gfx/overlay_transform.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/ozone/common/gpu/ozone_gpu_message_params.h View 2 chunks +16 lines, -0 lines 0 comments Download
M ui/ozone/common/gpu/ozone_gpu_message_params.cc View 2 chunks +21 lines, -0 lines 0 comments Download
M ui/ozone/common/gpu/ozone_gpu_messages.h View 1 2 3 4 5 6 4 chunks +22 lines, -1 line 0 comments Download
M ui/ozone/platform/drm/BUILD.gn View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M ui/ozone/platform/drm/drm.gypi View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M ui/ozone/platform/drm/gpu/drm_gpu_platform_support.h View 1 2 3 4 5 3 chunks +7 lines, -0 lines 0 comments Download
M ui/ozone/platform/drm/gpu/drm_gpu_platform_support.cc View 1 2 3 4 5 6 4 chunks +13 lines, -0 lines 0 comments Download
M ui/ozone/platform/drm/gpu/drm_window.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M ui/ozone/platform/drm/gpu/drm_window.cc View 1 2 3 chunks +35 lines, -0 lines 0 comments Download
A ui/ozone/platform/drm/host/drm_overlay_candidates_host.h View 1 2 3 4 1 chunk +85 lines, -0 lines 0 comments Download
A ui/ozone/platform/drm/host/drm_overlay_candidates_host.cc View 1 2 3 4 5 6 7 1 chunk +141 lines, -0 lines 0 comments Download
M ui/ozone/platform/drm/host/drm_overlay_manager.h View 1 2 3 4 5 6 2 chunks +5 lines, -2 lines 0 comments Download
M ui/ozone/platform/drm/host/drm_overlay_manager.cc View 1 2 3 4 5 6 2 chunks +8 lines, -49 lines 0 comments Download
M ui/ozone/platform/drm/ozone_platform_drm.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M ui/ozone/platform/drm/ozone_platform_gbm.cc View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M ui/ozone/public/overlay_candidates_ozone.h View 1 chunk +2 lines, -0 lines 0 comments Download
M ui/ozone/public/surface_factory_ozone.h View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 34 (9 generated)
achaulk
One grand unified CL that includes usage and no overengineering
5 years, 7 months ago (2015-05-26 17:31:04 UTC) #2
dnicoara
Should the cache be discarded when the display configuration or window bounds change? I can ...
5 years, 6 months ago (2015-05-28 21:09:54 UTC) #3
achaulk
https://codereview.chromium.org/1157793004/diff/1/ui/ozone/platform/drm/host/drm_host_overlay_candidates.cc File ui/ozone/platform/drm/host/drm_host_overlay_candidates.cc (right): https://codereview.chromium.org/1157793004/diff/1/ui/ozone/platform/drm/host/drm_host_overlay_candidates.cc#newcode84 ui/ozone/platform/drm/host/drm_host_overlay_candidates.cc:84: SendRequest(*candidates, PendingCheck(next_request_id_++, lookup)); On 2015/05/28 21:09:54, dnicoara wrote: > ...
5 years, 6 months ago (2015-05-29 18:49:21 UTC) #4
achaulk
5 years, 6 months ago (2015-05-29 19:10:10 UTC) #5
dnicoara
Any thoughts on the display change scenario mentioned in my last comment? https://codereview.chromium.org/1157793004/diff/1/ui/ozone/platform/drm/host/drm_host_overlay_candidates.cc File ui/ozone/platform/drm/host/drm_host_overlay_candidates.cc ...
5 years, 6 months ago (2015-05-29 19:28:24 UTC) #6
achaulk
We should clear the cache in that case, yes, but I'm going to add that ...
5 years, 6 months ago (2015-05-29 19:36:36 UTC) #7
spang
I still think, broadly speaking, that presentation decisions (including overlay queries) should happen through the ...
5 years, 6 months ago (2015-06-01 18:54:21 UTC) #8
spang
https://codereview.chromium.org/1157793004/diff/20001/ui/ozone/platform/drm/gpu/drm_window.cc File ui/ozone/platform/drm/gpu/drm_window.cc (right): https://codereview.chromium.org/1157793004/diff/20001/ui/ozone/platform/drm/gpu/drm_window.cc#newcode146 ui/ozone/platform/drm/gpu/drm_window.cc:146: return controller_ && Shouldn't it be if (!controller_) return ...
5 years, 6 months ago (2015-06-01 19:47:40 UTC) #9
achaulk
https://codereview.chromium.org/1157793004/diff/20001/ui/ozone/common/gpu/ozone_gpu_message_params.cc File ui/ozone/common/gpu/ozone_gpu_message_params.cc (right): https://codereview.chromium.org/1157793004/diff/20001/ui/ozone/common/gpu/ozone_gpu_message_params.cc#newcode46 ui/ozone/common/gpu/ozone_gpu_message_params.cc:46: display_rect(gfx::ToNearestRect(candidate.display_rect)), On 2015/06/01 18:54:20, spang wrote: > why is ...
5 years, 6 months ago (2015-06-01 20:43:08 UTC) #10
spang
https://codereview.chromium.org/1157793004/diff/60001/ui/ozone/platform/drm/host/drm_overlay_candidates_host.cc File ui/ozone/platform/drm/host/drm_overlay_candidates_host.cc (right): https://codereview.chromium.org/1157793004/diff/60001/ui/ozone/platform/drm/host/drm_overlay_candidates_host.cc#newcode12 ui/ozone/platform/drm/host/drm_overlay_candidates_host.cc:12: const size_t kMaxCacheSize = 10000; How likely do we ...
5 years, 6 months ago (2015-06-01 23:23:52 UTC) #11
achaulk
https://codereview.chromium.org/1157793004/diff/60001/ui/ozone/platform/drm/host/drm_overlay_candidates_host.cc File ui/ozone/platform/drm/host/drm_overlay_candidates_host.cc (right): https://codereview.chromium.org/1157793004/diff/60001/ui/ozone/platform/drm/host/drm_overlay_candidates_host.cc#newcode12 ui/ozone/platform/drm/host/drm_overlay_candidates_host.cc:12: const size_t kMaxCacheSize = 10000; On 2015/06/01 23:23:51, spang ...
5 years, 6 months ago (2015-06-02 14:37:43 UTC) #12
spang
https://codereview.chromium.org/1157793004/diff/60001/ui/ozone/platform/drm/host/drm_overlay_candidates_host.cc File ui/ozone/platform/drm/host/drm_overlay_candidates_host.cc (right): https://codereview.chromium.org/1157793004/diff/60001/ui/ozone/platform/drm/host/drm_overlay_candidates_host.cc#newcode12 ui/ozone/platform/drm/host/drm_overlay_candidates_host.cc:12: const size_t kMaxCacheSize = 10000; On 2015/06/02 14:37:43, achaulk ...
5 years, 6 months ago (2015-06-02 17:14:34 UTC) #13
achaulk
https://codereview.chromium.org/1157793004/diff/60001/ui/ozone/platform/drm/host/drm_overlay_candidates_host.cc File ui/ozone/platform/drm/host/drm_overlay_candidates_host.cc (right): https://codereview.chromium.org/1157793004/diff/60001/ui/ozone/platform/drm/host/drm_overlay_candidates_host.cc#newcode12 ui/ozone/platform/drm/host/drm_overlay_candidates_host.cc:12: const size_t kMaxCacheSize = 10000; On 2015/06/02 17:14:34, spang ...
5 years, 6 months ago (2015-06-02 19:38:38 UTC) #14
spang
lgtm
5 years, 6 months ago (2015-06-02 19:40:43 UTC) #15
spang
one last nit https://codereview.chromium.org/1157793004/diff/80001/ui/ozone/platform/drm/gpu/drm_gpu_platform_support.h File ui/ozone/platform/drm/gpu/drm_gpu_platform_support.h (right): https://codereview.chromium.org/1157793004/diff/80001/ui/ozone/platform/drm/gpu/drm_gpu_platform_support.h#newcode76 ui/ozone/platform/drm/gpu/drm_gpu_platform_support.h:76: const std::vector<OverlayCheck_Params>& overlays); Forgot to remove ...
5 years, 6 months ago (2015-06-02 19:43:27 UTC) #16
dnicoara
lgtm pending OverlayManagerOzone interface update
5 years, 6 months ago (2015-06-02 19:56:45 UTC) #17
achaulk
+nasko for IPC
5 years, 6 months ago (2015-06-04 17:30:41 UTC) #19
nasko
IPC LGTM
5 years, 6 months ago (2015-06-04 22:33:56 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1157793004/120001
5 years, 6 months ago (2015-06-05 15:36:09 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/68713)
5 years, 6 months ago (2015-06-05 15:43:58 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1157793004/120001
5 years, 6 months ago (2015-06-05 15:46:10 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/68717)
5 years, 6 months ago (2015-06-05 15:53:49 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1157793004/140001
5 years, 6 months ago (2015-06-05 15:57:09 UTC) #32
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 6 months ago (2015-06-05 16:57:37 UTC) #33
commit-bot: I haz the power
5 years, 6 months ago (2015-06-05 16:58:24 UTC) #34
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/ad89643990d9b2320960d1912695cc1418a3fdab
Cr-Commit-Position: refs/heads/master@{#333073}

Powered by Google App Engine
This is Rietveld 408576698