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

Unified Diff: ui/ozone/platform/drm/gpu/drm_window.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: fix gl_image_ozone_native_pixmap also, which gl_unittests check 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/common/drm_util.cc ('k') | ui/ozone/platform/drm/gpu/gbm_buffer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/drm/gpu/drm_window.cc
diff --git a/ui/ozone/platform/drm/gpu/drm_window.cc b/ui/ozone/platform/drm/gpu/drm_window.cc
index 59b238035ba9c32d49de77703be5a3dfdd722000..3e39d52c1fcfd8ec3ea2e7d529ef55fd06a5431e 100644
--- a/ui/ozone/platform/drm/gpu/drm_window.cc
+++ b/ui/ozone/platform/drm/gpu/drm_window.cc
@@ -158,12 +158,7 @@ std::vector<OverlayCheck_Params> DrmWindow::TestPageFlip(
scoped_refptr<ScanoutBuffer> buffer;
// Check if we can re-use existing buffers.
for (const auto& plane : last_submitted_planes_) {
- uint32_t format = GetFourCCFormatFromBufferFormat(overlay.format);
- // We always use a storage type of XRGB, even if the pixel format
- // is ARGB.
- if (format == DRM_FORMAT_ARGB8888)
- format = DRM_FORMAT_XRGB8888;
-
+ uint32_t format = GetFourCCFormatForFramebuffer(overlay.format);
if (plane.buffer->GetFramebufferPixelFormat() == format &&
plane.z_order == overlay.plane_z_order &&
plane.display_bounds == overlay.display_rect &&
« no previous file with comments | « ui/ozone/platform/drm/common/drm_util.cc ('k') | ui/ozone/platform/drm/gpu/gbm_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698