Changeset 2ab8ab3 in mainline for uspace/srv/hid/display/window.c


Ignore:
Timestamp:
2021-02-16T18:12:05Z (4 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
68a552f
Parents:
ef734b7
Message:

Client-side UI rendering

It is possible to turn on and off and if turned on, one can also
enable or disable window double buffering (currently both options
are build-time).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/display/window.c

    ref734b7 r2ab8ab3  
    4949#include "window.h"
    5050
    51 static void ds_window_update_cb(void *, gfx_rect_t *);
     51static void ds_window_invalidate_cb(void *, gfx_rect_t *);
     52static void ds_window_update_cb(void *);
    5253static void ds_window_get_preview_rect(ds_window_t *, gfx_rect_t *);
    5354
     
    106107        }
    107108
    108         rc = mem_gc_create(&params->rect, &alloc, ds_window_update_cb,
    109             (void *)wnd, &wnd->mgc);
     109        rc = mem_gc_create(&params->rect, &alloc, ds_window_invalidate_cb,
     110            ds_window_update_cb, (void *)wnd, &wnd->mgc);
    110111        if (rc != EOK)
    111112                goto error;
     
    789790}
    790791
    791 /** Window memory GC update callback.
    792  *
    793  * This is called by the window's memory GC when a rectangle us updated.
    794  */
    795 static void ds_window_update_cb(void *arg, gfx_rect_t *rect)
     792/** Window memory GC invalidate callback.
     793 *
     794 * This is called by the window's memory GC when a rectangle is modified.
     795 */
     796static void ds_window_invalidate_cb(void *arg, gfx_rect_t *rect)
    796797{
    797798        ds_window_t *wnd = (ds_window_t *)arg;
     
    806807}
    807808
     809/** Window memory GC update callback.
     810 *
     811 * This is called by the window's memory GC when it is to be updated.
     812 */
     813static void ds_window_update_cb(void *arg)
     814{
     815        ds_window_t *wnd = (ds_window_t *)arg;
     816
     817        (void) wnd;
     818}
     819
    808820/** @}
    809821 */
Note: See TracChangeset for help on using the changeset viewer.