diff options
author | Eamon Walsh <ewalsh@tycho.nsa.gov> | 2007-08-14 11:39:26 -0400 |
---|---|---|
committer | Eamon Walsh <ewalsh@moss-charon.epoch.ncsc.mil> | 2007-08-14 11:39:26 -0400 |
commit | 9a183d7ba50e31afa133cc03aee7991517a283ea (patch) | |
tree | a77da3210253f96d5d0be97a8a321920648ca81f /include/dix.h | |
parent | 2763056ab5ae31bed422a0948198d98c6ace6d55 (diff) |
dix: remove caching of drawables and graphics contexts. The security checks
simply bypass the cached values so they are unused.
Diffstat (limited to 'include/dix.h')
-rw-r--r-- | include/dix.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/include/dix.h b/include/dix.h index 71f4c23fd..daf16cbdc 100644 --- a/include/dix.h +++ b/include/dix.h @@ -82,8 +82,6 @@ SOFTWARE. } #define VALIDATE_DRAWABLE_AND_GC(drawID, pDraw, pGC, client)\ - if ((stuff->gc == INVALID) || (client->lastGCID != stuff->gc) ||\ - (client->lastDrawableID != drawID))\ {\ int rc;\ rc = dixLookupDrawable(&(pDraw), drawID, client, M_ANY,\ @@ -95,15 +93,6 @@ SOFTWARE. return rc;\ if ((pGC->depth != pDraw->depth) || (pGC->pScreen != pDraw->pScreen))\ return (BadMatch);\ - client->lastDrawable = pDraw;\ - client->lastDrawableID = drawID;\ - client->lastGC = pGC;\ - client->lastGCID = stuff->gc;\ - }\ - else\ - {\ - pGC = client->lastGC;\ - pDraw = client->lastDrawable;\ }\ if (pGC->serialNumber != pDraw->serialNumber)\ ValidateGC(pDraw, pGC); @@ -160,8 +149,6 @@ extern void UpdateCurrentTimeIf(void); extern void InitSelections(void); -extern void FlushClientCaches(XID /*id*/); - extern int dixDestroyPixmap( pointer /*value*/, XID /*pid*/); |