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

Issue 1483633002: ozone: support gfx::BufferFormat::RGBX_8888 as a native pixmap format. (Closed)

Created:
5 years ago by dshwang
Modified:
5 years ago
CC:
chromium-reviews, danakj+watch_chromium.org, darin-cc_chromium.org, jam, jbauman+watch_chromium.org, ozone-reviews_chromium.org, piman+watch_chromium.org, sievers+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ozone: support gfx::BufferFormat::RGBX_8888 as a native pixmap format. It's follow-up for https://codereview.chromium.org/1401063002/ In addition, this CL fixes content_unittests crash about gfx::BufferFormat::RGBA_8888 TEST=content_unittests --gtest_filter=GpuMemoryBuffer* --ozone-platform=gbm --ozone-use-surfaceless TEST=chrome --ozone-platform=gbm --ozone-use-surfaceless --ozone-test-single-overlay-support http://www.quirksmode.org/html5/tests/video.html BUG=538325 Committed: https://crrev.com/466c3f1235fdfcabca07e351748ebc2678f59ffa Cr-Commit-Position: refs/heads/master@{#366591}

Patch Set 1 #

Patch Set 2 : improve #

Total comments: 4

Patch Set 3 : keep hardware overlay creating 24 bits plane #

Total comments: 6

Patch Set 4 : set framebuffer_pixel_format_ only if scanout #

Patch Set 5 : ozone: support gfx::BufferFormat::RGBX_8888 #

Total comments: 4

Patch Set 6 : fix gl_image_ozone_native_pixmap also, which gl_unittests check #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -26 lines) Patch
M content/common/gpu/client/gpu_memory_buffer_impl_ozone_native_pixmap.cc View 1 chunk +1 line, -0 lines 0 comments Download
M ui/gl/gl_image_ozone_native_pixmap.cc View 1 2 3 4 5 5 chunks +4 lines, -2 lines 0 comments Download
M ui/ozone/platform/drm/client_native_pixmap_factory_gbm.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ui/ozone/platform/drm/common/drm_util.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M ui/ozone/platform/drm/common/drm_util.cc View 1 2 3 4 3 chunks +25 lines, -0 lines 0 comments Download
M ui/ozone/platform/drm/gpu/drm_window.cc View 1 2 3 4 1 chunk +1 line, -6 lines 0 comments Download
M ui/ozone/platform/drm/gpu/gbm_buffer.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M ui/ozone/platform/drm/gpu/gbm_buffer.cc View 1 2 3 4 3 chunks +4 lines, -4 lines 0 comments Download
M ui/ozone/platform/drm/gpu/gbm_buffer_base.h View 1 2 3 4 1 chunk +5 lines, -2 lines 0 comments Download
M ui/ozone/platform/drm/gpu/gbm_buffer_base.cc View 1 2 3 4 3 chunks +9 lines, -12 lines 0 comments Download

Messages

Total messages: 35 (12 generated)
dshwang
alexst, reveman, could you review? It's follow-up for https://codereview.chromium.org/1401063002/
5 years ago (2015-11-27 14:34:00 UTC) #4
dshwang
https://codereview.chromium.org/1483633002/diff/20001/ui/ozone/platform/drm/gpu/gbm_buffer_base.cc File ui/ozone/platform/drm/gpu/gbm_buffer_base.cc (left): https://codereview.chromium.org/1483633002/diff/20001/ui/ozone/platform/drm/gpu/gbm_buffer_base.cc#oldcode21 ui/ozone/platform/drm/gpu/gbm_buffer_base.cc:21: fb_pixel_format_ = GBM_FORMAT_XRGB8888; This hack was introduced by https://codereview.chromium.org/1314553002 ...
5 years ago (2015-11-27 17:59:54 UTC) #5
reveman
lgtm but we should really be querying gbm to find out what formats are supported. ...
5 years ago (2015-11-27 20:09:33 UTC) #6
kalyank
https://codereview.chromium.org/1483633002/diff/20001/ui/ozone/platform/drm/gpu/gbm_buffer_base.cc File ui/ozone/platform/drm/gpu/gbm_buffer_base.cc (right): https://codereview.chromium.org/1483633002/diff/20001/ui/ozone/platform/drm/gpu/gbm_buffer_base.cc#newcode18 ui/ozone/platform/drm/gpu/gbm_buffer_base.cc:18: fb_pixel_format_ = gbm_bo_get_format(bo); On 2015/11/27 17:59:54, dshwang_OOO_till_4thDec wrote: > ...
5 years ago (2015-11-27 21:15:20 UTC) #8
piman
LGTM for content/
5 years ago (2015-11-30 19:13:49 UTC) #9
dshwang
Hi thanks for reviewing. I'm back from vacation. As kalyank notes, drm doesn't support 32bit ...
5 years ago (2015-12-11 03:05:07 UTC) #10
kalyank
On 2015/12/11 03:05:07, dshwang wrote: > Hi thanks for reviewing. I'm back from vacation. > ...
5 years ago (2015-12-11 04:52:31 UTC) #12
kalyank
https://codereview.chromium.org/1483633002/diff/40001/ui/ozone/platform/drm/gpu/gbm_buffer_base.cc File ui/ozone/platform/drm/gpu/gbm_buffer_base.cc (right): https://codereview.chromium.org/1483633002/diff/40001/ui/ozone/platform/drm/gpu/gbm_buffer_base.cc#newcode17 ui/ozone/platform/drm/gpu/gbm_buffer_base.cc:17: : drm_(drm), bo_(bo), fb_pixel_format_(gbm_bo_get_format(bo)) { Unless its a scanout ...
5 years ago (2015-12-11 04:57:41 UTC) #13
dshwang
alexst, kalyank, could you review again? On 2015/12/11 04:52:31, kalyank wrote: > Not sure what ...
5 years ago (2015-12-11 07:17:33 UTC) #14
kalyank
https://codereview.chromium.org/1483633002/diff/40001/ui/ozone/platform/drm/gpu/gbm_buffer_base.cc File ui/ozone/platform/drm/gpu/gbm_buffer_base.cc (right): https://codereview.chromium.org/1483633002/diff/40001/ui/ozone/platform/drm/gpu/gbm_buffer_base.cc#newcode21 ui/ozone/platform/drm/gpu/gbm_buffer_base.cc:21: fb_pixel_format_ == GBM_FORMAT_ABGR8888) On 2015/12/11 07:17:32, dshwang wrote: > ...
5 years ago (2015-12-11 19:07:12 UTC) #15
dshwang
Change the CL's purpose; support gfx::BufferFormat::RGBX_8888 Currently, ozone supports RGBX_8888 incompletely. It's why content_unittests crashes. ...
5 years ago (2015-12-13 05:34:44 UTC) #17
kalyank
https://codereview.chromium.org/1483633002/diff/80001/ui/ozone/platform/drm/gpu/gbm_buffer.cc File ui/ozone/platform/drm/gpu/gbm_buffer.cc (right): https://codereview.chromium.org/1483633002/diff/80001/ui/ozone/platform/drm/gpu/gbm_buffer.cc#newcode145 ui/ozone/platform/drm/gpu/gbm_buffer.cc:145: return buffer_->GetFormat(); These changes now broke checks in VaapiWrapper. ...
5 years ago (2015-12-15 00:55:12 UTC) #18
dshwang
https://codereview.chromium.org/1483633002/diff/80001/ui/ozone/platform/drm/gpu/gbm_buffer.cc File ui/ozone/platform/drm/gpu/gbm_buffer.cc (right): https://codereview.chromium.org/1483633002/diff/80001/ui/ozone/platform/drm/gpu/gbm_buffer.cc#newcode145 ui/ozone/platform/drm/gpu/gbm_buffer.cc:145: return buffer_->GetFormat(); On 2015/12/15 00:55:12, kalyank wrote: > These ...
5 years ago (2015-12-15 04:48:31 UTC) #19
kalyank
On 2015/12/15 04:48:31, dshwang (in Korea) wrote: > https://codereview.chromium.org/1483633002/diff/80001/ui/ozone/platform/drm/gpu/gbm_buffer.cc > File ui/ozone/platform/drm/gpu/gbm_buffer.cc (right): > > ...
5 years ago (2015-12-15 05:18:48 UTC) #20
kalyank
On 2015/12/15 05:18:48, kalyank wrote: > On 2015/12/15 04:48:31, dshwang (in Korea) wrote: > > ...
5 years ago (2015-12-15 05:22:00 UTC) #21
dshwang
On 2015/12/15 05:22:00, kalyank wrote: > On 2015/12/15 05:18:48, kalyank wrote: > > On 2015/12/15 ...
5 years ago (2015-12-15 05:40:59 UTC) #22
kalyank
> https://code.google.com/p/chromium/codesearch#chromium/src/content/common/gpu/media/vaapi_wrapper.cc&l=643 > > You can check how this is being used here. Have you ...
5 years ago (2015-12-15 06:27:50 UTC) #23
dshwang
On 2015/12/15 06:27:50, kalyank wrote: > Non owner LGTM. Thank you for reviewing. alexst, spang, ...
5 years ago (2015-12-15 07:47:36 UTC) #25
kalyank
On 2015/12/15 07:47:36, dshwang (in Korea) wrote: > On 2015/12/15 06:27:50, kalyank wrote: > > ...
5 years ago (2015-12-21 20:10:48 UTC) #27
dnicoara
lgtm
5 years ago (2015-12-21 21:36:41 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1483633002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1483633002/100001
5 years ago (2015-12-22 12:32:22 UTC) #31
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years ago (2015-12-22 13:00:52 UTC) #33
commit-bot: I haz the power
5 years ago (2015-12-22 13:02:02 UTC) #35
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/466c3f1235fdfcabca07e351748ebc2678f59ffa
Cr-Commit-Position: refs/heads/master@{#366591}

Powered by Google App Engine
This is Rietveld 408576698