Changeset 8aef01c in mainline for uspace/srv/hid/display/test/window.c


Ignore:
Timestamp:
2020-06-07T10:18:14Z (5 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a65b0c8
Parents:
6301a24f
git-author:
Jiri Svoboda <jiri@…> (2020-06-07 10:11:32)
git-committer:
Jiri Svoboda <jiri@…> (2020-06-07 10:18:14)
Message:

Configurable display double-buffering

On by default (since turning off creates flicker in the absence of
front-to-back rendering). This is the quick and dirty way: display
server renders locally to a bitmap (using mem GC) and renders the
bitmap when ready.

The more sophisticated way would be to implement buffering in the
display device. That would require, however, enhancing the protocols
to communicate frame boundaries.

File:
1 edited

Legend:

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

    r6301a24f r8aef01c  
    6363        errno_t rc;
    6464
    65         rc = ds_display_create(NULL, &disp);
     65        rc = ds_display_create(NULL, df_none, &disp);
    6666        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    6767
     
    109109        errno_t rc;
    110110
    111         rc = ds_display_create(NULL, &disp);
     111        rc = ds_display_create(NULL, df_none, &disp);
    112112        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    113113
     
    146146        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    147147
    148         rc = ds_display_create(gc, &disp);
     148        rc = ds_display_create(gc, df_none, &disp);
    149149        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    150150
     
    192192        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    193193
    194         rc = ds_display_create(gc, &disp);
     194        rc = ds_display_create(gc, df_none, &disp);
    195195        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    196196
     
    260260        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    261261
    262         rc = ds_display_create(gc, &disp);
     262        rc = ds_display_create(gc, df_none, &disp);
    263263        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    264264
     
    303303        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    304304
    305         rc = ds_display_create(gc, &disp);
     305        rc = ds_display_create(gc, df_none, &disp);
    306306        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    307307
     
    349349        errno_t rc;
    350350
    351         rc = ds_display_create(NULL, &disp);
     351        rc = ds_display_create(NULL, df_none, &disp);
    352352        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    353353
     
    614614        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    615615
    616         rc = ds_display_create(gc, &disp);
     616        rc = ds_display_create(gc, df_none, &disp);
    617617        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    618618
Note: See TracChangeset for help on using the changeset viewer.