Lines Matching refs:u

46 static void execute_drawing(lv_draw_sdl_unit_t * u);
51 static bool draw_to_texture(lv_draw_sdl_unit_t * u, cache_data_t * cache_data);
196 static bool draw_to_texture(lv_draw_sdl_unit_t * u, cache_data_t * cache_data) in draw_to_texture() argument
198 lv_draw_task_t * task = u->task_act; in draw_to_texture()
206 …if(!lv_draw_buf_reshape(&u->render_draw_buf, LV_COLOR_FORMAT_ARGB8888, texture_w, texture_h, LV_ST… in draw_to_texture()
207 uint8_t * data = u->render_draw_buf.unaligned_data; in draw_to_texture()
213 …lv_result_t init_result = lv_draw_buf_init(&u->render_draw_buf, texture_w, texture_h, LV_COLOR_FOR… in draw_to_texture()
219 dest_layer.draw_buf = &u->render_draw_buf; in draw_to_texture()
224 lv_memzero(u->render_draw_buf.data, lv_area_get_size(&task->_real_area) * 4); in draw_to_texture()
328 SDL_UpdateTexture(texture, NULL, u->render_draw_buf.data, texture_w * 4); in draw_to_texture()
345 static void blend_texture_layer(lv_draw_sdl_unit_t * u) in blend_texture_layer() argument
351 clip_rect.x = u->base_unit.clip_area->x1; in blend_texture_layer()
352 clip_rect.y = u->base_unit.clip_area->y1; in blend_texture_layer()
353 clip_rect.w = lv_area_get_width(u->base_unit.clip_area); in blend_texture_layer()
354 clip_rect.h = lv_area_get_height(u->base_unit.clip_area); in blend_texture_layer()
356 lv_draw_task_t * t = u->task_act; in blend_texture_layer()
374 SDL_SetRenderTarget(renderer, layer_get_texture(u->base_unit.target_layer)); in blend_texture_layer()
384 static void draw_from_cached_texture(lv_draw_sdl_unit_t * u) in draw_from_cached_texture() argument
386 lv_draw_task_t * t = u->task_act; in draw_from_cached_texture()
432 … lv_cache_entry_t * entry_cached = lv_cache_acquire_or_create(u->texture_cache, &data_to_find, u); in draw_from_cached_texture()
448 lv_layer_t * dest_layer = u->base_unit.target_layer; in draw_from_cached_texture()
450 clip_rect.x = u->base_unit.clip_area->x1 - dest_layer->buf_area.x1; in draw_from_cached_texture()
451 clip_rect.y = u->base_unit.clip_area->y1 - dest_layer->buf_area.y1; in draw_from_cached_texture()
452 clip_rect.w = lv_area_get_width(u->base_unit.clip_area); in draw_from_cached_texture()
453 clip_rect.h = lv_area_get_height(u->base_unit.clip_area); in draw_from_cached_texture()
469 lv_cache_release(u->texture_cache, entry_cached, u); in draw_from_cached_texture()
476 lv_cache_drop(u->texture_cache, &data_to_find, NULL); in draw_from_cached_texture()
481 static void execute_drawing(lv_draw_sdl_unit_t * u) in execute_drawing() argument
483 lv_draw_task_t * t = u->task_act; in execute_drawing()
489 lv_layer_t * layer = u->base_unit.target_layer; in execute_drawing()
491 lv_area_intersect(&fill_area, &fill_area, u->base_unit.clip_area); in execute_drawing()
508 blend_texture_layer(u); in execute_drawing()
512 draw_from_cached_texture(u); in execute_drawing()