| 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 &&
|
|
|