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

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: InitTest 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 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

Powered by Google App Engine
This is Rietveld 408576698