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

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

Issue 1314553002: Move Format checks to HardwareDisplayPlane (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 months 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
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

Powered by Google App Engine
This is Rietveld 408576698