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

Issue 1426993003: Ozone: Dont hardcode format to YUV when using Overlay Composition. (Closed)

Created:
5 years, 1 month ago by kalyank
Modified:
4 years, 11 months ago
CC:
chromium-reviews, 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: Dont hardcode format to YUV when using Overlay Composition. We currently hardcode formats to YUV for Video used during Hardware Overlay composition. All platforms might not support this format and also in future we might want to support other formats like NV12. Also, in certain use cases like FullScreen using YUV might not be right format as Primary plane might not support it. Instead of hardcoding it, we should rather use OverlayValidator to decide the right format. This CL adds needed support. BUG=553264 Committed: https://crrev.com/ba1c3b03daef7adfd3e684b5228b4f65e95a113c Cr-Commit-Position: refs/heads/master@{#369546}

Patch Set 1 #

Total comments: 18

Patch Set 2 : Add support for querying formats from GbmSurfaceless #

Patch Set 3 : cosmetic fixes #

Total comments: 6

Patch Set 4 : Rebase #

Patch Set 5 : Rebase #

Patch Set 6 : Rebase #

Patch Set 7 : Rebase #

Patch Set 8 : Nit fix #

Patch Set 9 : Remove obsolete code #

Total comments: 21

Patch Set 10 : Review fixes #

Patch Set 11 : Fix unit tests #

Patch Set 12 : Handle Buffer processing in Pixmap #

Patch Set 13 : Fix comments #

Patch Set 14 : Remove redundant plane sorting #

Patch Set 15 : Nit fixes #

Patch Set 16 : Comments #

Total comments: 6

Patch Set 17 : Review fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+298 lines, -189 lines) Patch
M ui/ozone/platform/drm/gpu/drm_overlay_validator.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +8 lines, -9 lines 0 comments Download
M ui/ozone/platform/drm/gpu/drm_overlay_validator.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +54 lines, -29 lines 0 comments Download
M ui/ozone/platform/drm/gpu/drm_overlay_validator_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 20 chunks +146 lines, -66 lines 0 comments Download
M ui/ozone/platform/drm/gpu/drm_thread.cc View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -3 lines 0 comments Download
M ui/ozone/platform/drm/gpu/drm_window.h View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -3 lines 0 comments Download
M ui/ozone/platform/drm/gpu/drm_window.cc View 1 2 3 4 5 6 7 8 9 3 chunks +8 lines, -7 lines 0 comments Download
M ui/ozone/platform/drm/gpu/drm_window_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M ui/ozone/platform/drm/gpu/gbm_buffer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +5 lines, -4 lines 0 comments Download
M ui/ozone/platform/drm/gpu/gbm_buffer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +31 lines, -56 lines 0 comments Download
M ui/ozone/platform/drm/gpu/gbm_buffer_base.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +4 lines, -3 lines 0 comments Download
M ui/ozone/platform/drm/gpu/gbm_buffer_base.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -2 lines 0 comments Download
M ui/ozone/platform/drm/gpu/overlay_plane.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +15 lines, -0 lines 0 comments Download
M ui/ozone/platform/drm/gpu/overlay_plane.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +13 lines, -0 lines 0 comments Download
M ui/ozone/platform/drm/gpu/screen_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 6 chunks +6 lines, -6 lines 0 comments Download

Messages

Total messages: 38 (16 generated)
kalyank
This is a WIP patch. Looking for advice on how we can query for the ...
5 years, 1 month ago (2015-11-09 19:57:44 UTC) #3
kalyank
On 2015/11/09 19:57:44, kalyank wrote: > This is a WIP patch. Looking for advice on ...
5 years, 1 month ago (2015-11-09 19:58:25 UTC) #4
dnicoara
https://codereview.chromium.org/1426993003/diff/1/ui/ozone/platform/drm/gpu/drm_window.cc File ui/ozone/platform/drm/gpu/drm_window.cc (left): https://codereview.chromium.org/1426993003/diff/1/ui/ozone/platform/drm/gpu/drm_window.cc#oldcode161 ui/ozone/platform/drm/gpu/drm_window.cc:161: uint32_t format = GetFourCCFormatFromBufferFormat(overlay.format); This is no longer looking ...
5 years, 1 month ago (2015-11-09 20:53:23 UTC) #8
kalyank
https://codereview.chromium.org/1426993003/diff/1/ui/ozone/platform/drm/gpu/drm_window.cc File ui/ozone/platform/drm/gpu/drm_window.cc (right): https://codereview.chromium.org/1426993003/diff/1/ui/ozone/platform/drm/gpu/drm_window.cc#newcode164 ui/ozone/platform/drm/gpu/drm_window.cc:164: overlay.display_rect, overlay.crop_rect, size, overlay.plane_z_order, On 2015/11/09 20:53:23, dnicoara wrote: ...
5 years, 1 month ago (2015-11-09 21:44:05 UTC) #9
dnicoara
https://codereview.chromium.org/1426993003/diff/1/ui/ozone/platform/drm/gpu/drm_window.cc File ui/ozone/platform/drm/gpu/drm_window.cc (right): https://codereview.chromium.org/1426993003/diff/1/ui/ozone/platform/drm/gpu/drm_window.cc#newcode164 ui/ozone/platform/drm/gpu/drm_window.cc:164: overlay.display_rect, overlay.crop_rect, size, overlay.plane_z_order, On 2015/11/09 21:44:05, kalyank wrote: ...
5 years, 1 month ago (2015-11-09 22:26:42 UTC) #10
kalyank
https://codereview.chromium.org/1426993003/diff/1/ui/ozone/platform/drm/gpu/drm_window.cc File ui/ozone/platform/drm/gpu/drm_window.cc (right): https://codereview.chromium.org/1426993003/diff/1/ui/ozone/platform/drm/gpu/drm_window.cc#newcode164 ui/ozone/platform/drm/gpu/drm_window.cc:164: overlay.display_rect, overlay.crop_rect, size, overlay.plane_z_order, On 2015/11/09 22:26:42, dnicoara wrote: ...
5 years, 1 month ago (2015-11-09 23:03:41 UTC) #11
kalyank
https://codereview.chromium.org/1426993003/diff/1/ui/ozone/platform/drm/gpu/drm_window.cc File ui/ozone/platform/drm/gpu/drm_window.cc (right): https://codereview.chromium.org/1426993003/diff/1/ui/ozone/platform/drm/gpu/drm_window.cc#newcode220 ui/ozone/platform/drm/gpu/drm_window.cc:220: if (crop_rect.width() && crop_rect.height()) { On 2015/11/09 20:53:23, dnicoara ...
5 years, 1 month ago (2015-11-19 16:10:41 UTC) #12
dnicoara
Could this be split out as multiple changes? It is becoming harder to follow given ...
5 years, 1 month ago (2015-11-23 19:22:54 UTC) #13
kalyank
On 2015/11/23 19:22:54, dnicoara wrote: > Could this be split out as multiple changes? It ...
5 years, 1 month ago (2015-11-23 20:14:02 UTC) #14
kalyank
On 2015/11/23 20:14:02, kalyank wrote: > On 2015/11/23 19:22:54, dnicoara wrote: > > Could this ...
5 years ago (2015-12-01 16:36:22 UTC) #15
kalyank
On 2015/12/01 16:36:22, kalyank wrote: > On 2015/11/23 20:14:02, kalyank wrote: > > On 2015/11/23 ...
5 years ago (2015-12-09 17:04:50 UTC) #16
kalyank
On 2015/12/09 17:04:50, kalyank wrote: > I am working on passing the necessary data (i.e. ...
5 years ago (2015-12-10 16:49:52 UTC) #17
kalyank
@dnicoara PTAL https://codereview.chromium.org/1426993003/diff/160001/ui/ozone/platform/drm/gpu/gbm_buffer.cc File ui/ozone/platform/drm/gpu/gbm_buffer.cc (right): https://codereview.chromium.org/1426993003/diff/160001/ui/ozone/platform/drm/gpu/gbm_buffer.cc#newcode88 ui/ozone/platform/drm/gpu/gbm_buffer.cc:88: processing_callback_ = processing_callback; This is called on ...
4 years, 11 months ago (2016-01-11 08:19:51 UTC) #25
dnicoara
https://codereview.chromium.org/1426993003/diff/160001/ui/ozone/platform/drm/gpu/drm_overlay_validator.h File ui/ozone/platform/drm/gpu/drm_overlay_validator.h (right): https://codereview.chromium.org/1426993003/diff/160001/ui/ozone/platform/drm/gpu/drm_overlay_validator.h#newcode32 ui/ozone/platform/drm/gpu/drm_overlay_validator.h:32: OverlayPlaneList ValidatePlanesForPageFlip( Could you please add some comments describing ...
4 years, 11 months ago (2016-01-13 17:26:52 UTC) #26
kalyank
https://codereview.chromium.org/1426993003/diff/160001/ui/ozone/platform/drm/gpu/drm_overlay_validator.h File ui/ozone/platform/drm/gpu/drm_overlay_validator.h (right): https://codereview.chromium.org/1426993003/diff/160001/ui/ozone/platform/drm/gpu/drm_overlay_validator.h#newcode32 ui/ozone/platform/drm/gpu/drm_overlay_validator.h:32: OverlayPlaneList ValidatePlanesForPageFlip( On 2016/01/13 17:26:51, dnicoara wrote: > Could ...
4 years, 11 months ago (2016-01-13 19:52:33 UTC) #27
dnicoara
https://codereview.chromium.org/1426993003/diff/160001/ui/ozone/platform/drm/gpu/drm_overlay_validator.h File ui/ozone/platform/drm/gpu/drm_overlay_validator.h (right): https://codereview.chromium.org/1426993003/diff/160001/ui/ozone/platform/drm/gpu/drm_overlay_validator.h#newcode59 ui/ozone/platform/drm/gpu/drm_overlay_validator.h:59: // Expectation is that we have same combination of ...
4 years, 11 months ago (2016-01-13 20:21:53 UTC) #28
kalyank
https://codereview.chromium.org/1426993003/diff/160001/ui/ozone/platform/drm/gpu/drm_overlay_validator.h File ui/ozone/platform/drm/gpu/drm_overlay_validator.h (right): https://codereview.chromium.org/1426993003/diff/160001/ui/ozone/platform/drm/gpu/drm_overlay_validator.h#newcode59 ui/ozone/platform/drm/gpu/drm_overlay_validator.h:59: // Expectation is that we have same combination of ...
4 years, 11 months ago (2016-01-14 06:24:05 UTC) #29
dnicoara
lgtm % some minor changes https://codereview.chromium.org/1426993003/diff/300001/ui/ozone/platform/drm/gpu/gbm_buffer.cc File ui/ozone/platform/drm/gpu/gbm_buffer.cc (right): https://codereview.chromium.org/1426993003/diff/300001/ui/ozone/platform/drm/gpu/gbm_buffer.cc#newcode167 ui/ozone/platform/drm/gpu/gbm_buffer.cc:167: gbm, buffer_format, size, gfx::BufferUsage::SCANOUT); ...
4 years, 11 months ago (2016-01-14 19:30:02 UTC) #30
kalyank
https://codereview.chromium.org/1426993003/diff/300001/ui/ozone/platform/drm/gpu/gbm_buffer.cc File ui/ozone/platform/drm/gpu/gbm_buffer.cc (right): https://codereview.chromium.org/1426993003/diff/300001/ui/ozone/platform/drm/gpu/gbm_buffer.cc#newcode167 ui/ozone/platform/drm/gpu/gbm_buffer.cc:167: gbm, buffer_format, size, gfx::BufferUsage::SCANOUT); On 2016/01/14 19:30:02, dnicoara wrote: ...
4 years, 11 months ago (2016-01-14 20:36:54 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1426993003/320001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1426993003/320001
4 years, 11 months ago (2016-01-14 21:06:12 UTC) #34
commit-bot: I haz the power
Committed patchset #17 (id:320001)
4 years, 11 months ago (2016-01-14 21:31:04 UTC) #36
commit-bot: I haz the power
4 years, 11 months ago (2016-01-14 22:03:34 UTC) #38
Message was sent while issue was closed.
Patchset 17 (id:??) landed as
https://crrev.com/ba1c3b03daef7adfd3e684b5228b4f65e95a113c
Cr-Commit-Position: refs/heads/master@{#369546}

Powered by Google App Engine
This is Rietveld 408576698