Home
last modified time | relevance | path

Searched refs:surface (Results 1 – 6 of 6) sorted by relevance

/bootable/recovery/minui/
Dresources.cpp43 GRSurface* surface = reinterpret_cast<GRSurface*>(temp); in malloc_surface() local
44 surface->data = temp + sizeof(GRSurface) + in malloc_surface()
46 return surface; in malloc_surface()
144 GRSurface* surface = malloc_surface(width * height * 4); in init_display_surface() local
145 if (surface == NULL) return NULL; in init_display_surface()
147 surface->width = width; in init_display_surface()
148 surface->height = height; in init_display_surface()
149 surface->row_bytes = width * 4; in init_display_surface()
150 surface->pixel_bytes = 4; in init_display_surface()
152 return surface; in init_display_surface()
[all …]
Dgraphics_drm.cpp62 struct drm_surface *surface) { in drm_enable_crtc() argument
66 surface->fb_id, in drm_enable_crtc()
84 static void drm_destroy_surface(struct drm_surface *surface) { in drm_destroy_surface() argument
88 if(!surface) in drm_destroy_surface()
91 if (surface->base.data) in drm_destroy_surface()
92 munmap(surface->base.data, in drm_destroy_surface()
93 surface->base.row_bytes * surface->base.height); in drm_destroy_surface()
95 if (surface->fb_id) { in drm_destroy_surface()
96 ret = drmModeRmFB(drm_fd, surface->fb_id); in drm_destroy_surface()
101 if (surface->handle) { in drm_destroy_surface()
[all …]
Dminui.h54 unsigned int gr_get_width(GRSurface* surface);
55 unsigned int gr_get_height(GRSurface* surface);
121 void res_free_surface(GRSurface* surface);
Dgraphics.cpp256 unsigned int gr_get_width(GRSurface* surface) { in gr_get_width() argument
257 if (surface == NULL) { in gr_get_width()
260 return surface->width; in gr_get_width()
263 unsigned int gr_get_height(GRSurface* surface) { in gr_get_height() argument
264 if (surface == NULL) { in gr_get_height()
267 return surface->height; in gr_get_height()
/bootable/recovery/
Dscreen_ui.h135 void LoadBitmap(const char* filename, GRSurface** surface);
136 void LoadBitmapArray(const char* filename, int* frames, GRSurface*** surface);
137 void LoadLocalizedBitmap(const char* filename, GRSurface** surface);
Dscreen_ui.cpp93 GRSurface* surface = backgroundIcon[icon]; in draw_background_locked() local
95 surface = installation[installingFrame]; in draw_background_locked()
99 int iconWidth = gr_get_width(surface); in draw_background_locked()
100 int iconHeight = gr_get_height(surface); in draw_background_locked()
113 gr_blit(surface, 0, 0, iconWidth, iconHeight, iconX, iconY); in draw_background_locked()
361 void ScreenRecoveryUI::LoadBitmap(const char* filename, GRSurface** surface) { in LoadBitmap() argument
362 int result = res_create_display_surface(filename, surface); in LoadBitmap()
368 void ScreenRecoveryUI::LoadBitmapArray(const char* filename, int* frames, GRSurface*** surface) { in LoadBitmapArray() argument
369 int result = res_create_multi_display_surface(filename, frames, surface); in LoadBitmapArray()
375 void ScreenRecoveryUI::LoadLocalizedBitmap(const char* filename, GRSurface** surface) { in LoadLocalizedBitmap() argument
[all …]