Changeset 8ce56a6 in mainline for uspace/lib/memgfx


Ignore:
Timestamp:
2021-09-07T08:53:42Z (4 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ebb3538
Parents:
a0aeb8f
git-author:
Jiri Svoboda <jiri@…> (2021-09-06 17:53:32)
git-committer:
Jiri Svoboda <jiri@…> (2021-09-07 08:53:42)
Message:

Translate window rendering in console/SSR with translation GC

In full-screen mode (such as text/console) and server-side rendering
we need other mechanism than memory GC to translate the coordinates
while rendering. We use a translation GC (xlategc).

Note the extensively elaborate testing of this very simple GC seems
quite overboard. At least the very elaborate test_gc_t could be hoisted
into a library and used wherever a test GC is required.

Location:
uspace/lib/memgfx
Files:
5 added
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/memgfx/meson.build

    ra0aeb8f r8ce56a6  
    11#
    2 # Copyright (c) 2020 Jiri Svoboda
     2# Copyright (c) 2021 Jiri Svoboda
    33# All rights reserved.
    44#
     
    2929deps = [ 'gfx' ]
    3030src = files(
    31         'src/memgc.c'
     31        'src/memgc.c',
     32        'src/xlategc.c'
    3233)
    3334
     
    3536        'test/main.c',
    3637        'test/memgfx.c',
     38        'test/xlategc.c'
    3739)
  • uspace/lib/memgfx/private/memgc.h

    ra0aeb8f r8ce56a6  
    2727 */
    2828
    29 /** @addtogroup libguigfx
     29/** @addtogroup libmemgfx
    3030 * @{
    3131 */
     
    6363/** Bitmap in memory GC */
    6464typedef struct {
    65         /** Containing canvas GC */
     65        /** Containing memory GC */
    6666        struct mem_gc *mgc;
    6767        /** Allocation info */
  • uspace/lib/memgfx/test/main.c

    ra0aeb8f r8ce56a6  
    11/*
    2  * Copyright (c) 2020 Jiri Svoboda
     2 * Copyright (c) 2021 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    3232
    3333PCUT_IMPORT(memgfx);
     34PCUT_IMPORT(xlategc);
    3435
    3536PCUT_MAIN();
Note: See TracChangeset for help on using the changeset viewer.