head 1.2; access; symbols netbsd-7-2-RELEASE:1.1.1.3 netbsd-7-1-2-RELEASE:1.1.1.3 netbsd-7-1-1-RELEASE:1.1.1.3 netbsd-7-1:1.1.1.3.0.14 netbsd-7-1-RELEASE:1.1.1.3 netbsd-7-1-RC2:1.1.1.3 netbsd-7-1-RC1:1.1.1.3 netbsd-7-0-2-RELEASE:1.1.1.3 netbsd-7-0-1-RELEASE:1.1.1.3 netbsd-7-0:1.1.1.3.0.12 netbsd-7-0-RELEASE:1.1.1.3 netbsd-7-0-RC3:1.1.1.3 netbsd-7-0-RC2:1.1.1.3 netbsd-7-0-RC1:1.1.1.3 netbsd-5-2-3-RELEASE:1.1.1.1 netbsd-5-1-5-RELEASE:1.1.1.1 netbsd-6-0-6-RELEASE:1.1.1.3 netbsd-6-1-5-RELEASE:1.1.1.3 netbsd-7:1.1.1.3.0.10 netbsd-7-base:1.1.1.3 netbsd-6-1-4-RELEASE:1.1.1.3 netbsd-6-0-5-RELEASE:1.1.1.3 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.1.1.3 riastradh-drm2:1.1.1.3.0.8 riastradh-drm2-base:1.1.1.3 netbsd-6-1-3-RELEASE:1.1.1.3 netbsd-6-0-4-RELEASE:1.1.1.3 netbsd-5-2-2-RELEASE:1.1.1.1 netbsd-5-1-4-RELEASE:1.1.1.1 netbsd-6-1-2-RELEASE:1.1.1.3 netbsd-6-0-3-RELEASE:1.1.1.3 netbsd-5-2-1-RELEASE:1.1.1.1 netbsd-5-1-3-RELEASE:1.1.1.1 netbsd-6-1-1-RELEASE:1.1.1.3 xorg-server-1-10-6:1.1.1.3 netbsd-6-1:1.1.1.3.0.6 netbsd-6-0-2-RELEASE:1.1.1.3 netbsd-6-1-RELEASE:1.1.1.3 netbsd-6-1-RC4:1.1.1.3 netbsd-6-1-RC3:1.1.1.3 netbsd-6-1-RC2:1.1.1.3 netbsd-6-1-RC1:1.1.1.3 netbsd-5-2:1.1.1.1.0.8 netbsd-6-0-1-RELEASE:1.1.1.3 netbsd-5-2-RELEASE:1.1.1.1 netbsd-5-2-RC1:1.1.1.1 netbsd-6-0:1.1.1.3.0.4 netbsd-6-0-RELEASE:1.1.1.3 netbsd-6-0-RC2:1.1.1.3 netbsd-6-0-RC1:1.1.1.3 netbsd-6:1.1.1.3.0.2 netbsd-6-base:1.1.1.3 netbsd-5-1-2-RELEASE:1.1.1.1 netbsd-5-1-1-RELEASE:1.1.1.1 xorg-server-1-10-3:1.1.1.3 mrg-xorg-server-1-9-5-pre-1-10-3:1.1.1.2 xorg-server-1-9-5:1.1.1.2 xorg-server-1-9-2:1.1.1.2 netbsd-5-1:1.1.1.1.0.6 netbsd-5-1-RELEASE:1.1.1.1 netbsd-5-1-RC4:1.1.1.1 netbsd-5-1-RC3:1.1.1.1 netbsd-5-1-RC2:1.1.1.1 netbsd-5-1-RC1:1.1.1.1 netbsd-5-0-2-RELEASE:1.1.1.1 xorg-server-1-6-5:1.1.1.1 xorg-server-1-6-3:1.1.1.1 netbsd-5-0-1-RELEASE:1.1.1.1 xorg-server-1-6-2:1.1.1.1 xorg-server-1-6-1-901:1.1.1.1 netbsd-5-0:1.1.1.1.0.4 netbsd-5-0-RELEASE:1.1.1.1 netbsd-5-0-RC4:1.1.1.1 netbsd-5-0-RC3:1.1.1.1 netbsd-5-0-RC2:1.1.1.1 netbsd-5-0-RC1:1.1.1.1 netbsd-5:1.1.1.1.0.2 netbsd-5-base:1.1.1.1 xorg-server-1-4-2:1.1.1.1 xorg:1.1.1; locks; strict; comment @# @; 1.2 date 2016.08.11.00.04.28; author mrg; state dead; branches; next 1.1; commitid FQxwnZNPy5ZgOOhz; 1.1 date 2008.07.31.19.50.30; author mrg; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2008.07.31.19.50.30; author mrg; state Exp; branches; next 1.1.1.2; 1.1.1.2 date 2010.11.23.05.21.17; author mrg; state Exp; branches; next 1.1.1.3; 1.1.1.3 date 2011.08.02.06.56.50; author mrg; state Exp; branches; next ; desc @@ 1.2 log @first merge of netbsd changes. not tested yet. @ text @
#include "dmx.h"#include "dmxsync.h"#include "dmxgc.h"#include "dmxgcops.h"#include "dmxpixmap.h"#include "dmxfont.h"#include "gcstruct.h"#include "pixmapstr.h"#include "migc.h"Functions | |
| Bool | dmxInitGC (ScreenPtr pScreen) |
| void | dmxBECreateGC (ScreenPtr pScreen, GCPtr pGC) |
| Bool | dmxCreateGC (GCPtr pGC) |
| void | dmxValidateGC (GCPtr pGC, unsigned long changes, DrawablePtr pDrawable) |
| void | dmxChangeGC (GCPtr pGC, unsigned long mask) |
| void | dmxCopyGC (GCPtr pGCSrc, unsigned long changes, GCPtr pGCDst) |
| Bool | dmxBEFreeGC (GCPtr pGC) |
| void | dmxDestroyGC (GCPtr pGC) |
| void | dmxChangeClip (GCPtr pGC, int type, pointer pvalue, int nrects) |
| void | dmxDestroyClip (GCPtr pGC) |
| void | dmxCopyClip (GCPtr pGCDst, GCPtr pGCSrc) |
|
||||||||||||
|
Create the GC on the back-end server. |
|
|
Free the pGC on the back-end server. |
|
||||||||||||||||||||
|
Change the clip rects for a GC. |
|
||||||||||||
|
Set the values in the graphics context on the back-end server associated with pGC's screen. |
|
||||||||||||
|
Copy a GC's clip rects. |
|
||||||||||||||||
|
Copy pGCSrc to pGCDst on the back-end server associated with pGCSrc's screen. |
|
|
Create a graphics context on the back-end server associated /a pGC's screen. |
|
|
Destroy a GC's clip rects. |
|
|
Destroy the graphics context, pGC and free the corresponding GC on the back-end server. |
|
|
Initialize the GC on pScreen, which currently involves allocating the GC private associated with this screen. |
|
||||||||||||||||
|
Validate a graphics context, pGC, locally in the DMX server and recompute the composite clip, if necessary. |
#include "dmx.h"#include "dmxsync.h"#include "dmxgc.h"#include "dmxgcops.h"#include "dmxpixmap.h"#include "dmxfont.h"#include "gcstruct.h"#include "pixmapstr.h"#include "migc.h"Functions | |||||
| Bool | dmxInitGC (ScreenPtr pScreen) | ||||
| void | dmxBECreateGC (ScreenPtr pScreen, GCPtr pGC) | ||||
| Bool | dmxCreateGC (GCPtr pGC) | ||||
| void | dmxValidateGC (GCPtr pGC, unsigned long changes, DrawablePtr pDrawable) | ||||
| void | dmxChangeGC (GCPtr pGC, unsigned long mask) | ||||
| void | dmxCopyGC (GCPtr pGCSrc, unsigned long changes, GCPtr pGCDst) | ||||
| Bool | dmxBEFreeGC (GCPtr pGC) | ||||
| void | dmxDestroyGC (GCPtr pGC) | ||||
| void | dmxChangeClip (GCPtr pGC, int type, pointer pvalue, int nrects) | ||||
| void | dmxDestroyClip (GCPtr pGC) | ||||
| void | dmxCopyClip (GCPtr pGCDst, GCPtr pGCSrc) | ||||
Variables | |||||
| static GCFuncs | dmxGCFuncs | ||||
| static GCOps | dmxGCOps | ||||
| void dmxBECreateGC | ( | ScreenPtr | pScreen, | a59 1d61 3 a63 2 | GCPtr | pGC | d67 2 a68 2 | ) | d70 1 d72 27 a98 7 |
| Bool dmxBEFreeGC | ( | GCPtr | pGC | ) |
| void dmxChangeClip | ( | GCPtr | pGC, | a126 1d128 3 a130 2 | int | type, | a132 1d134 3 a136 2 | pointer | pvalue, | a138 1d140 3 a142 2 | int | nrects | d146 2 a147 2 | ) | d149 1 d151 19 a169 12 |
| void dmxChangeGC | ( | GCPtr | pGC, | a176 1d178 3 a180 2 | unsigned long | mask | d184 2 a185 2 | ) | d187 1 d189 19 a207 14 |
| void dmxCopyClip | ( | GCPtr | pGCDst, | a214 1d216 3 a218 2 | GCPtr | pGCSrc | d222 2 a223 2 | ) | d225 1 d227 19 a245 12 |
| void dmxCopyGC | ( | GCPtr | pGCSrc, | a252 1d254 3 a256 2 | unsigned long | changes, | a258 1d260 3 a262 2 | GCPtr | pGCDst | d266 2 a267 2 | ) | d269 1 d271 27 a297 3 |
| Bool dmxCreateGC | ( | GCPtr | pGC | ) | a355 4 |
Create a graphics context on the back-end server associated /a pGC's screen.
a356 18References _DMXScreenInfo::beDisplay, DMX_GET_GC_PRIV, DMX_UNWRAP, DMX_WRAP, dmxBECreateGC(), dmxCreateGC(), dmxGCFuncs, dmxScreens, _dmxGCPriv::funcs, _dmxGCPriv::gc, _dmxGCPriv::msc, and _dmxGCPriv::ops.
Referenced by dmxCreateGC(), and dmxScreenInit().
| void dmxDestroyClip | ( | GCPtr | pGC | ) |
| void dmxDestroyGC | ( | GCPtr | pGC | ) | a384 4 |
Destroy the graphics context, pGC and free the corresponding GC on the back-end server.
a385 16References _DMXScreenInfo::beDisplay, DMX_GC_FUNC_EPILOGUE, DMX_GC_FUNC_PROLOGUE, dmxBEFreeGC(), and dmxScreens.
| Bool dmxInitGC | ( | ScreenPtr | pScreen | ) |
| void dmxValidateGC | ( | GCPtr | pGC, | a412 1d414 3 a416 2 | unsigned long | changes, | a418 1d420 3 a422 2 | DrawablePtr | pDrawable | d426 2 a427 19 | ) |
Validate a graphics context, pGC, locally in the DMX server and recompute the composite clip, if necessary.
References DMX_GC_FUNC_EPILOGUE, DMX_GC_FUNC_PROLOGUE, DMX_GET_GC_PRIV, and _dmxGCPriv::ops.
GCFuncs dmxGCFuncs [static] |
a428 14
{
dmxValidateGC,
dmxChangeGC,
dmxCopyGC,
dmxDestroyGC,
dmxChangeClip,
dmxDestroyClip,
dmxCopyClip,
}
Referenced by dmxCreateGC().
a429 9GCOps dmxGCOps [static] |