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


Ignore:
Timestamp:
2020-05-29T19:04:46Z (5 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f8375f7
Parents:
d8e2485
Message:

Guigfx can use memory GC

File:
1 edited

Legend:

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

    rd8e2485 rcea9f0c  
    4444#include <gfx/coord.h>
    4545#include <io/pixel.h>
     46#include <memgfx/memgc.h>
    4647
    4748/** Actual structure of canvas GC. */
     
    5354        /** Surface */
    5455        surface_t *surface;
    55         /** Current drawing color */
    56         pixel_t color;
     56        /** Memory GC */
     57        mem_gc_t *mgc;
     58        /** Base GC for memory GC */
     59        gfx_context_t *mbgc;
    5760};
    5861
     
    6164        /** Containing canvas GC */
    6265        struct canvas_gc *cgc;
    63         /** Allocation info */
    64         gfx_bitmap_alloc_t alloc;
    65         /** @c true if we allocated the bitmap, @c false if allocated by caller */
    66         bool myalloc;
    67         /** Surface */
    68         surface_t *surface;
    69         /** Rectangle covered by bitmap */
    70         gfx_rect_t rect;
    71         /** Bitmap flags */
    72         gfx_bitmap_flags_t flags;
    73         /** Key color */
    74         pixel_t key_color;
     66        /** Memory GC bitmap */
     67        gfx_bitmap_t *mbitmap;
    7568} canvas_gc_bitmap_t;
    7669
Note: See TracChangeset for help on using the changeset viewer.