Index: ui/ozone/platform/drm/gpu/hardware_display_plane_atomic.cc |
diff --git a/ui/ozone/platform/drm/gpu/hardware_display_plane_atomic.cc b/ui/ozone/platform/drm/gpu/hardware_display_plane_atomic.cc |
index e1f4bb636958047f20c2b2ab3bdae6a29d2d69c0..386fd366ea5e083ca3d57039d14235d4975f7daf 100644 |
--- a/ui/ozone/platform/drm/gpu/hardware_display_plane_atomic.cc |
+++ b/ui/ozone/platform/drm/gpu/hardware_display_plane_atomic.cc |
@@ -4,9 +4,6 @@ |
#include "ui/ozone/platform/drm/gpu/hardware_display_plane_atomic.h" |
-#include <drm/drm_fourcc.h> |
-#include <gbm.h> |
- |
#include "ui/ozone/platform/drm/gpu/drm_device.h" |
namespace ui { |
@@ -108,29 +105,4 @@ bool HardwareDisplayPlaneAtomic::InitializeProperties( |
return true; |
} |
-bool HardwareDisplayPlaneAtomic::IsSupportedFormat(uint32_t format) const { |
- uint32_t format_type = 0; |
- switch (format) { |
- case GBM_BO_FORMAT_ARGB8888: { |
- // We create a FB of 24 bit color depth. |
- format_type = DRM_FORMAT_XRGB8888; |
- break; |
- } |
- case GBM_BO_FORMAT_XRGB8888: { |
- format_type = DRM_FORMAT_XRGB8888; |
- break; |
- } |
- default: |
- NOTREACHED(); |
- return false; |
- } |
- |
- for (auto& element : supported_formats_) { |
- if (element == format_type) |
- return true; |
- } |
- |
- return false; |
-} |
- |
} // namespace ui |