[PATCH v2 11/12] shadow: Don't register empty wakeup handler
Pauli
ext-pauli.nieminen at nokia.com
Tue Jan 4 03:06:32 PST 2011
From: Pauli Nieminen <ext-pauli.nieminen at nokia.com>
This reduces about 1us runtime for each main loop iteration on ARM.
Signed-off-by: Pauli Nieminen <ext-pauli.nieminen at nokia.com>
---
miext/shadow/shadow.c | 11 ++---------
1 files changed, 2 insertions(+), 9 deletions(-)
diff --git a/miext/shadow/shadow.c b/miext/shadow/shadow.c
index cb1b299..d847085 100644
--- a/miext/shadow/shadow.c
+++ b/miext/shadow/shadow.c
@@ -72,11 +72,6 @@ shadowBlockHandler(pointer data, OSTimePtr pTimeout, pointer pRead)
}
static void
-shadowWakeupHandler(pointer data, int i, pointer LastSelectMask)
-{
-}
-
-static void
shadowGetImage(DrawablePtr pDrawable, int sx, int sy, int w, int h,
unsigned int format, unsigned long planeMask, char *pdstLine)
{
@@ -182,8 +177,7 @@ shadowAdd(ScreenPtr pScreen, PixmapPtr pPixmap, ShadowUpdateProc update,
{
shadowBuf(pScreen);
- if (!RegisterBlockAndWakeupHandlers(shadowBlockHandler, shadowWakeupHandler,
- (pointer)pScreen))
+ if (!RegisterBlockHandler(shadowBlockHandler, pScreen))
return FALSE;
/*
@@ -227,8 +221,7 @@ shadowRemove(ScreenPtr pScreen, PixmapPtr pPixmap)
pBuf->pPixmap = 0;
}
- RemoveBlockAndWakeupHandlers(shadowBlockHandler, shadowWakeupHandler,
- (pointer) pScreen);
+ RemoveBlockHandler(shadowBlockHandler, pScreen);
}
Bool
--
1.7.0.4
More information about the xorg-devel
mailing list