diff options
author | Aaron Plattner <aplattner@nvidia.com> | 2017-02-22 13:30:48 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2017-04-10 16:22:28 +0200 |
commit | 3ef6d51202a5c4f8ad23d17abf0ee9957129e88c (patch) | |
tree | 56e09a5450bd5d89b8f1fc1857f7e50087c3297b /nx-X11/programs/Xserver/include/scrnintstr.h | |
parent | cc24d8ba254f1e5062c21adfa07f8b58bb2c5eaa (diff) | |
download | nx-libs-3ef6d51202a5c4f8ad23d17abf0ee9957129e88c.tar.gz nx-libs-3ef6d51202a5c4f8ad23d17abf0ee9957129e88c.tar.bz2 nx-libs-3ef6d51202a5c4f8ad23d17abf0ee9957129e88c.zip |
Add CreatePixmap allocation hints.
Backported from X.org:
commit f2e310132fbe1520c1b5f3da4faa2d2d47835e72
Author: Aaron Plattner <aplattner@nvidia.com>
Date: Wed Oct 31 14:15:35 2007 -0700
Add CreatePixmap allocation hints.
These hints allow an acceleration architecture to optimize allocation of certain
types of pixmaps, such as pixmaps that will serve as backing pixmaps for
redirected windows.
Backported-to-NX-by: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Diffstat (limited to 'nx-X11/programs/Xserver/include/scrnintstr.h')
-rw-r--r-- | nx-X11/programs/Xserver/include/scrnintstr.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/nx-X11/programs/Xserver/include/scrnintstr.h b/nx-X11/programs/Xserver/include/scrnintstr.h index 341d1145c..5a3f32309 100644 --- a/nx-X11/programs/Xserver/include/scrnintstr.h +++ b/nx-X11/programs/Xserver/include/scrnintstr.h @@ -196,11 +196,19 @@ typedef void (* ClipNotifyProcPtr)( int /*dx*/, int /*dy*/); +/* pixmap will exist only for the duration of the current rendering operation */ +#define CREATE_PIXMAP_USAGE_SCRATCH 1 +/* pixmap will be the backing pixmap for a redirected window */ +#define CREATE_PIXMAP_USAGE_BACKING_PIXMAP 2 +/* pixmap will contain a glyph */ +#define CREATE_PIXMAP_USAGE_GLYPH_PICTURE 3 + typedef PixmapPtr (* CreatePixmapProcPtr)( ScreenPtr /*pScreen*/, int /*width*/, int /*height*/, - int /*depth*/); + int /*depth*/, + unsigned /*usage_hint*/); typedef Bool (* DestroyPixmapProcPtr)( PixmapPtr /*pPixmap*/); |