Lines Matching refs:key

180     lv_draw_rect_bg_key_t key = rect_bg_key_create(radius, radius);  in lv_draw_sdl_rect_bg_frag_obtain()  local
181 SDL_Texture * texture = lv_draw_sdl_texture_cache_get(ctx, &key, sizeof(key), NULL); in lv_draw_sdl_rect_bg_frag_obtain()
191 *in_cache = lv_draw_sdl_texture_cache_put(ctx, &key, sizeof(key), texture); in lv_draw_sdl_rect_bg_frag_obtain()
202 lv_draw_rect_grad_frag_key_t key = rect_grad_frag_key_create(grad, w, h, radius); in lv_draw_sdl_rect_grad_frag_obtain() local
203 SDL_Texture * texture = lv_draw_sdl_texture_cache_get(ctx, &key, sizeof(key), NULL); in lv_draw_sdl_rect_grad_frag_obtain()
246 *in_cache = lv_draw_sdl_texture_cache_put(ctx, &key, sizeof(key), texture); in lv_draw_sdl_rect_grad_frag_obtain()
256 lv_draw_rect_grad_strip_key_t key = rect_grad_strip_key_create(grad); in lv_draw_sdl_rect_grad_strip_obtain() local
257 SDL_Texture * texture = lv_draw_sdl_texture_cache_get(ctx, &key, sizeof(key), NULL); in lv_draw_sdl_rect_grad_strip_obtain()
274 *in_cache = lv_draw_sdl_texture_cache_put(ctx, &key, sizeof(key), texture); in lv_draw_sdl_rect_grad_strip_obtain()
555 …lv_draw_sdl_cache_key_head_img_t * key = lv_draw_sdl_texture_img_key_create(dsc->bg_img_src, 0, &k… in draw_bg_img() local
558 …SDL_Texture * texture = lv_draw_sdl_texture_cache_get_with_userdata(ctx, key, key_size, &key_found, in draw_bg_img()
560 SDL_free(key); in draw_bg_img()
659 lv_draw_rect_shadow_key_t key = rect_shadow_key_create(radius, frag_size, sw); in draw_shadow() local
661 SDL_Texture * texture = lv_draw_sdl_texture_cache_get(ctx, &key, sizeof(key), NULL); in draw_shadow()
681 texture_in_cache = lv_draw_sdl_texture_cache_put(ctx, &key, sizeof(key), texture); in draw_shadow()
776 lv_draw_rect_border_key_t key = rect_border_key_create(rout, rin, outer_area, inner_area); in draw_border_generic() local
778 lv_coord_t max_side = LV_MAX4(key.offsets.x1, key.offsets.y1, -key.offsets.x2, -key.offsets.y2); in draw_border_generic()
780 SDL_Texture * texture = lv_draw_sdl_texture_cache_get(ctx, &key, sizeof(key), NULL); in draw_border_generic()
796 … const lv_area_t frag_inner_area = {frag_area.x1 + key.offsets.x1, frag_area.y1 + key.offsets.y1, in draw_border_generic()
797 … frag_area.x2 + key.offsets.x2, frag_area.y2 + key.offsets.y2 in draw_border_generic()
808 texture_in_cache = lv_draw_sdl_texture_cache_put(ctx, &key, sizeof(key), texture); in draw_border_generic()
944 lv_draw_rect_bg_key_t key; in rect_bg_key_create() local
945 SDL_memset(&key, 0, sizeof(key)); in rect_bg_key_create()
946 key.magic = LV_GPU_CACHE_KEY_MAGIC_RECT_BG; in rect_bg_key_create()
947 key.radius = radius; in rect_bg_key_create()
948 key.size = size; in rect_bg_key_create()
949 return key; in rect_bg_key_create()
955 lv_draw_rect_grad_frag_key_t key; in rect_grad_frag_key_create() local
956 SDL_memset(&key, 0, sizeof(key)); in rect_grad_frag_key_create()
957 key.magic = LV_GPU_CACHE_KEY_MAGIC_RECT_GRAD; in rect_grad_frag_key_create()
958 key.stops_count = grad->stops_count; in rect_grad_frag_key_create()
959 key.dir = grad->dir; in rect_grad_frag_key_create()
961 key.stops[i].frac = grad->stops[i].frac; in rect_grad_frag_key_create()
962 key.stops[i].color = grad->stops[i].color; in rect_grad_frag_key_create()
964 key.w = w; in rect_grad_frag_key_create()
965 key.h = h; in rect_grad_frag_key_create()
966 key.radius = radius; in rect_grad_frag_key_create()
967 return key; in rect_grad_frag_key_create()
972 lv_draw_rect_grad_strip_key_t key; in rect_grad_strip_key_create() local
973 SDL_memset(&key, 0, sizeof(key)); in rect_grad_strip_key_create()
974 key.magic = LV_GPU_CACHE_KEY_MAGIC_RECT_GRAD; in rect_grad_strip_key_create()
975 key.stops_count = grad->stops_count; in rect_grad_strip_key_create()
976 key.dir = grad->dir; in rect_grad_strip_key_create()
978 key.stops[i].frac = grad->stops[i].frac; in rect_grad_strip_key_create()
979 key.stops[i].color = grad->stops[i].color; in rect_grad_strip_key_create()
981 return key; in rect_grad_strip_key_create()
986 lv_draw_rect_shadow_key_t key; in rect_shadow_key_create() local
987 SDL_memset(&key, 0, sizeof(key)); in rect_shadow_key_create()
988 key.magic = LV_GPU_CACHE_KEY_MAGIC_RECT_SHADOW; in rect_shadow_key_create()
989 key.radius = radius; in rect_shadow_key_create()
990 key.size = size; in rect_shadow_key_create()
991 key.blur = blur; in rect_shadow_key_create()
992 return key; in rect_shadow_key_create()
998 lv_draw_rect_border_key_t key; in rect_border_key_create() local
1000 SDL_memset(&key, 0, sizeof(key)); in rect_border_key_create()
1001 key.magic = LV_GPU_CACHE_KEY_MAGIC_RECT_BORDER; in rect_border_key_create()
1002 key.rout = rout; in rect_border_key_create()
1003 key.rin = rin; in rect_border_key_create()
1004 key.offsets.x1 = inner_area->x1 - outer_area->x1; in rect_border_key_create()
1005 key.offsets.x2 = inner_area->x2 - outer_area->x2; in rect_border_key_create()
1006 key.offsets.y1 = inner_area->y1 - outer_area->y1; in rect_border_key_create()
1007 key.offsets.y2 = inner_area->y2 - outer_area->y2; in rect_border_key_create()
1008 return key; in rect_border_key_create()