Index: ui/ozone/platform/drm/common/drm_util.h |
diff --git a/ui/ozone/platform/drm/common/drm_util.h b/ui/ozone/platform/drm/common/drm_util.h |
index 57f9d217d2489e23d042e57664d90a21ecd00890..ccb2771cb1d786b99e0c3dfb51c1982a15c807ee 100644 |
--- a/ui/ozone/platform/drm/common/drm_util.h |
+++ b/ui/ozone/platform/drm/common/drm_util.h |
@@ -12,11 +12,16 @@ |
#include "base/files/file_path.h" |
#include "base/macros.h" |
+#include "ui/display/types/display_mode.h" |
#include "ui/ozone/common/gpu/ozone_gpu_message_params.h" |
#include "ui/ozone/platform/drm/common/scoped_drm_types.h" |
typedef struct _drmModeModeInfo drmModeModeInfo; |
+namespace display { |
+class DisplayMode; |
+} // namespace display |
+ |
namespace gfx { |
class Point; |
} |
@@ -70,6 +75,20 @@ int GetFourCCFormatForOpaqueFramebuffer(gfx::BufferFormat format); |
gfx::Size GetMaximumCursorSize(int fd); |
+DisplayMode_Params GetDisplayModeParams(const display::DisplayMode& mode); |
+ |
+std::unique_ptr<const display::DisplayMode> CreateDisplayModeFromParams( |
+ const DisplayMode_Params& pmode); |
+ |
+bool MatchMode(const display::DisplayMode& display_mode, |
+ const drmModeModeInfo& m); |
+ |
+const gfx::Size ModeSize(const drmModeModeInfo& mode); |
+ |
+float ModeRefreshRate(const drmModeModeInfo& mode); |
+ |
+bool ModeIsInterlaced(const drmModeModeInfo& mode); |
+ |
} // namespace ui |
#endif // UI_OZONE_PLATFORM_DRM_COMMON_DRM_UTIL_H_ |