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

Unified Diff: ui/ozone/platform/drm/common/drm_util.h

Issue 2894523007: Use display::DisplayMode in ozone/drm/gpu (Closed)
Patch Set: review nits Created 3 years, 7 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
« no previous file with comments | « ui/ozone/platform/drm/BUILD.gn ('k') | ui/ozone/platform/drm/common/drm_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « ui/ozone/platform/drm/BUILD.gn ('k') | ui/ozone/platform/drm/common/drm_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698