mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-24 20:55:49 +00:00
Add CreatePixmap allocation hints.
These hints allow an acceleration architecture to optimize allocation of certain types of pixmaps, such as pixmaps that will serve as backing pixmaps for redirected windows.
This commit is contained in:
parent
3f1b6765aa
commit
f2e310132f
65 changed files with 150 additions and 97 deletions
|
|
@ -177,7 +177,7 @@ miDbeAllocBackBufferName(WindowPtr pWin, XID bufId, int swapAction)
|
|||
if (!(pDbeWindowPrivPriv->pFrontBuffer =
|
||||
(*pScreen->CreatePixmap)(pScreen, pDbeWindowPriv->width,
|
||||
pDbeWindowPriv->height,
|
||||
pWin->drawable.depth)))
|
||||
pWin->drawable.depth, 0)))
|
||||
{
|
||||
return(BadAlloc);
|
||||
}
|
||||
|
|
@ -186,7 +186,7 @@ miDbeAllocBackBufferName(WindowPtr pWin, XID bufId, int swapAction)
|
|||
if (!(pDbeWindowPrivPriv->pBackBuffer =
|
||||
(*pScreen->CreatePixmap)(pScreen, pDbeWindowPriv->width,
|
||||
pDbeWindowPriv->height,
|
||||
pWin->drawable.depth)))
|
||||
pWin->drawable.depth, 0)))
|
||||
{
|
||||
(*pScreen->DestroyPixmap)(pDbeWindowPrivPriv->pFrontBuffer);
|
||||
return(BadAlloc);
|
||||
|
|
@ -648,10 +648,10 @@ miDbePositionWindow(WindowPtr pWin, int x, int y)
|
|||
|
||||
/* Create DBE buffer pixmaps equal to size of resized window. */
|
||||
pFrontBuffer = (*pScreen->CreatePixmap)(pScreen, width, height,
|
||||
pWin->drawable.depth);
|
||||
pWin->drawable.depth, 0);
|
||||
|
||||
pBackBuffer = (*pScreen->CreatePixmap)(pScreen, width, height,
|
||||
pWin->drawable.depth);
|
||||
pWin->drawable.depth, 0);
|
||||
|
||||
if (!pFrontBuffer || !pBackBuffer)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue