Fork us on GitHub Follow us on Facebook Follow us on Twitter

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


Ignore:
Timestamp:
2021-02-16T18:12:05Z (11 months ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master
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/display.c

    ref734b7 r2ab8ab3  
    5050
    5151static gfx_context_t *ds_display_get_unbuf_gc(ds_display_t *);
    52 static void ds_display_update_cb(void *, gfx_rect_t *);
     52static void ds_display_invalidate_cb(void *, gfx_rect_t *);
     53static void ds_display_update_cb(void *);
    5354
    5455/** Create display.
     
    459460
    460461        rc = mem_gc_create(&disp->rect, &alloc,
    461             ds_display_update_cb, (void *) disp, &disp->bbgc);
     462            ds_display_invalidate_cb, ds_display_update_cb, (void *) disp,
     463            &disp->bbgc);
    462464        if (rc != EOK)
    463465                goto error;
     
    732734}
    733735
    734 /** Display update callback.
     736/** Display invalidate callback.
    735737 *
    736738 * Called by backbuffer memory GC when something is rendered into it.
     
    740742 * @param rect Rectangle to update
    741743 */
    742 static void ds_display_update_cb(void *arg, gfx_rect_t *rect)
     744static void ds_display_invalidate_cb(void *arg, gfx_rect_t *rect)
    743745{
    744746        ds_display_t *disp = (ds_display_t *) arg;
     
    749751}
    750752
     753/** Display update callback.
     754 *
     755 * @param arg Argument (display cast as void *)
     756 */
     757static void ds_display_update_cb(void *arg)
     758{
     759        ds_display_t *disp = (ds_display_t *) arg;
     760
     761        (void) disp;
     762}
     763
    751764/** @}
    752765 */
Note: See TracChangeset for help on using the changeset viewer.