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

Unified Diff: ui/ozone/platform/drm/gpu/gbm_buffer_base.cc

Issue 1483633002: ozone: support gfx::BufferFormat::RGBX_8888 as a native pixmap format. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: keep hardware overlay creating 24 bits plane Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/ozone/platform/drm/gpu/gbm_buffer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/drm/gpu/gbm_buffer_base.cc
diff --git a/ui/ozone/platform/drm/gpu/gbm_buffer_base.cc b/ui/ozone/platform/drm/gpu/gbm_buffer_base.cc
index 5f27c51e7e9f04c1625622f7384e6f4765448932..610249a6920e24fff472c418c3907e0eaaae67fc 100644
--- a/ui/ozone/platform/drm/gpu/gbm_buffer_base.cc
+++ b/ui/ozone/platform/drm/gpu/gbm_buffer_base.cc
@@ -14,10 +14,11 @@ namespace ui {
GbmBufferBase::GbmBufferBase(const scoped_refptr<DrmDevice>& drm,
gbm_bo* bo,
bool scanout)
- : drm_(drm), bo_(bo) {
+ : drm_(drm), bo_(bo), fb_pixel_format_(gbm_bo_get_format(bo)) {
kalyank 2015/12/11 04:57:41 Unless its a scanout buffer and the buffer is regi
dshwang 2015/12/11 07:17:32 Ok, agree. To clarify, rename it to framebuffer_pi
if (scanout) {
- fb_pixel_format_ = gbm_bo_get_format(bo);
- if (fb_pixel_format_ == GBM_FORMAT_ARGB8888)
+ // Currently, drm supports 24 bitcolordepth for hardware overlay.
+ if (fb_pixel_format_ == GBM_FORMAT_ARGB8888 ||
+ fb_pixel_format_ == GBM_FORMAT_ABGR8888)
kalyank 2015/12/11 04:57:41 ABGR, is this format going to be used ?
dshwang 2015/12/11 07:17:32 ABGR is not used by chrome. However, ozone gbm sup
kalyank 2015/12/11 19:07:12 Only BGRA and RGBA are advertised. In BGRA case, f
dshwang 2015/12/13 05:34:43 Got it. New CL supports both BGRX8888 and RGBX8888
fb_pixel_format_ = GBM_FORMAT_XRGB8888;
// For now, we only support XRGB and UYVY format.
« no previous file with comments | « ui/ozone/platform/drm/gpu/gbm_buffer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698