Changeset f8375f7 in mainline for uspace/lib/guigfx/private/canvas.h


Ignore:
Timestamp:
2020-05-30T17:16:39Z (5 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
dbef30f
Parents:
cea9f0c
Message:

Communicate memory GC updates via callback function

This is what we want in most use cases. Allows us to expose memory GC
ops directly without interposing on them (greatly simplifying the code).
The previous behavior is easily achieved by supplying the right callback
function.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/guigfx/private/canvas.h

    rcea9f0c rf8375f7  
    4848/** Actual structure of canvas GC. */
    4949struct canvas_gc {
     50        /** Memory GC */
     51        mem_gc_t *mgc;
    5052        /** Base graphic context */
    5153        gfx_context_t *gc;
     
    5456        /** Surface */
    5557        surface_t *surface;
    56         /** Memory GC */
    57         mem_gc_t *mgc;
    58         /** Base GC for memory GC */
    59         gfx_context_t *mbgc;
    6058};
    61 
    62 /** Bitmap in canvas GC */
    63 typedef struct {
    64         /** Containing canvas GC */
    65         struct canvas_gc *cgc;
    66         /** Memory GC bitmap */
    67         gfx_bitmap_t *mbitmap;
    68 } canvas_gc_bitmap_t;
    6959
    7060#endif
Note: See TracChangeset for help on using the changeset viewer.