Home
last modified time | relevance | path

Searched refs:drm_fd (Results 1 – 2 of 2) sorted by relevance

/bootable/recovery/minui/
Dgraphics_drm.cpp77 std::unique_ptr<GRSurfaceDrm> GRSurfaceDrm::Create(int drm_fd, int width, int height) { in Create() argument
100 if (drmIoctl(drm_fd, DRM_IOCTL_MODE_CREATE_DUMB, &create_dumb) != 0) { in Create()
107 width, height, create_dumb.pitch, create_dumb.bpp / 8, drm_fd, create_dumb.handle)); in Create()
114 if (drmModeAddFB2(drm_fd, width, height, format, handles, pitches, offsets, &surface->fb_id, 0) != in Create()
122 if (drmIoctl(drm_fd, DRM_IOCTL_MODE_MAP_DUMB, &map_dumb) != 0) { in Create()
128 MAP_SHARED, drm_fd, map_dumb.offset); in Create()
137 void MinuiBackendDrm::DrmDisableCrtc(int drm_fd, drmModeCrtc* crtc) { in DrmDisableCrtc() argument
139 drmModeSetCrtc(drm_fd, crtc->crtc_id, in DrmDisableCrtc()
148 bool MinuiBackendDrm::DrmEnableCrtc(int drm_fd, drmModeCrtc* crtc, in DrmEnableCrtc() argument
150 if (drmModeSetCrtc(drm_fd, crtc->crtc_id, surface->fb_id, 0, 0, // x,y in DrmEnableCrtc()
[all …]
Dgraphics_drm.h34 static std::unique_ptr<GRSurfaceDrm> Create(int drm_fd, int width, int height);
43 GRSurfaceDrm(size_t width, size_t height, size_t row_bytes, size_t pixel_bytes, int drm_fd, in GRSurfaceDrm() argument
45 : GRSurface(width, height, row_bytes, pixel_bytes), drm_fd_(drm_fd), handle(handle) {} in GRSurfaceDrm()
64 void DrmDisableCrtc(int drm_fd, drmModeCrtc* crtc);
65 bool DrmEnableCrtc(int drm_fd, drmModeCrtc* crtc, const std::unique_ptr<GRSurfaceDrm>& surface);
73 int drm_fd{ -1 };