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 fcb888a753192bdda15f3f4cfacba526c982935d..8e46916ad2a513cdbe3b042fd919a98327434149 100644 |
--- a/ui/ozone/platform/drm/gpu/hardware_display_plane_atomic.cc |
+++ b/ui/ozone/platform/drm/gpu/hardware_display_plane_atomic.cc |
@@ -4,8 +4,6 @@ |
#include "ui/ozone/platform/drm/gpu/hardware_display_plane_atomic.h" |
-#include <drm.h> |
-#include <drm/drm_fourcc.h> |
#include <errno.h> |
#include <gbm.h> |
#include <xf86drm.h> |
@@ -123,29 +121,4 @@ bool HardwareDisplayPlaneAtomic::Initialize( |
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 |