summaryrefslogtreecommitdiff
path: root/miext/cw/cw.h
diff options
context:
space:
mode:
authorDeron Johnson <deron.johnson@sun.com>2005-01-20 23:47:26 +0000
committerDeron Johnson <deron.johnson@sun.com>2005-01-20 23:47:26 +0000
commit57c954d3aa00c4882c7fecfd53e772f9641c0b38 (patch)
tree0ddc1a6ca4f67efbd382f211fe71a2f77138b8e1 /miext/cw/cw.h
parentcc390e4ed5e0d1bc8f7c3eaf9de67be4e9792b7c (diff)
Integrate changes for release-0-6-1lg3d-rel-0-7-0
Diffstat (limited to 'miext/cw/cw.h')
-rw-r--r--miext/cw/cw.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/miext/cw/cw.h b/miext/cw/cw.h
index dcc5ee91a..7fdd72287 100644
--- a/miext/cw/cw.h
+++ b/miext/cw/cw.h
@@ -175,3 +175,42 @@ extern void lg3dMoveWindow (WindowPtr pWin, int x, int y, WindowPtr pNextSib, VT
extern void lg3dSlideAndSizeWindow (WindowPtr pWin, int x, int y,
unsigned int w, unsigned int h, WindowPtr pSib);
#endif /* LG3D */
+
+#ifdef COMPOSITE_DEBUG_VISUALIZE
+
+#include "pixmapstr.h"
+
+extern int compositeDebugVisualizeBackingPixmap;
+extern int compositeDebugVisualizeSharedPixmap;
+extern int compositeDebugVisualizeBackingPixmapDstX;
+extern int compositeDebugVisualizeBackingPixmapDstY;
+extern int compositeDebugVisualizeSharedPixmapDstX;
+extern int compositeDebugVisualizeSharedPixmapDstY;
+
+extern void compositeDebugVisualizeDrawable (DrawablePtr pDrawable,
+ int dstx, int dsty);
+
+#define COMPOSITE_DEBUGVIS_BACKING_PIXMAP(pDrawable) \
+ if (compositeDebugVisualizeBackingPixmap) { \
+ compositeDebugVisualizeDrawable(pDrawable, \
+ compositeDebugVisualizeBackingPixmapDstX, \
+ compositeDebugVisualizeBackingPixmapDstY); \
+ }
+
+extern int hasBackingDrawable (DrawablePtr pDrawable);
+
+#define DRAWABLE_IS_REDIRECTED_WINDOW(pDraw) hasBackingDrawable(pDraw)
+
+#define COMPOSITE_DEBUGVIS_SHARED_PIXMAP(pDst, pSrc) \
+ if (compositeDebugVisualizeSharedPixmap && \
+ DRAWABLE_IS_REDIRECTED_WINDOW(pSrc) && \
+ pDst->type == DRAWABLE_PIXMAP) { \
+ compositeDebugVisualizeDrawable(pDst, \
+ compositeDebugVisualizeSharedPixmapDstX, \
+ compositeDebugVisualizeSharedPixmapDstY); \
+ }
+
+#else
+#define COMPOSITE_DEBUGVIS_BACKING_PIXMAP(pDrawable)
+#define COMPOSITE_DEBUGVIS_SHARED_PIXMAP(pDst, pSrc)
+#endif