mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-25 02:30:06 +01:00
Add offscreen optimization to dmxShmPutImage.
This commit is contained in:
parent
40cf9d64ee
commit
00eedc704d
1 changed files with 16 additions and 1 deletions
|
|
@ -103,7 +103,22 @@ dmxShmPutImage (DrawablePtr dst,
|
|||
char *data)
|
||||
{
|
||||
PixmapPtr pmap;
|
||||
GCPtr putGC;
|
||||
GCPtr putGC;
|
||||
|
||||
if (dst->type == DRAWABLE_WINDOW)
|
||||
{
|
||||
dmxWinPrivPtr pWinPriv = DMX_GET_WINDOW_PRIV ((WindowPtr) (dst));
|
||||
|
||||
if (!pWinPriv->window || (dmxOffScreenOpt && pWinPriv->offscreen))
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
dmxPixPrivPtr pPixPriv = DMX_GET_PIXMAP_PRIV ((PixmapPtr) (dst));
|
||||
|
||||
if (!pPixPriv->pixmap)
|
||||
return;
|
||||
}
|
||||
|
||||
putGC = GetScratchGC(depth, dst->pScreen);
|
||||
if (!putGC)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue