mirror of
https://github.com/X11Libre/xserver.git
synced 2026-11-01 03:03:58 +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
|
|
@ -141,7 +141,8 @@ static void RACCopyWindow(WindowPtr pWin, DDXPointRec ptOldOrg,
|
|||
RegionPtr prgnSrc );
|
||||
static void RACClearToBackground (WindowPtr pWin, int x, int y,
|
||||
int w, int h, Bool generateExposures );
|
||||
static PixmapPtr RACCreatePixmap(ScreenPtr pScreen, int w, int h, int depth);
|
||||
static PixmapPtr RACCreatePixmap(ScreenPtr pScreen, int w, int h, int depth,
|
||||
unsigned usage_hint);
|
||||
static Bool RACCreateGC(GCPtr pGC);
|
||||
static Bool RACSaveScreen(ScreenPtr pScreen, Bool unblank);
|
||||
static void RACStoreColors (ColormapPtr pmap, int ndef, xColorItem *pdefs);
|
||||
|
|
@ -450,14 +451,14 @@ RACClearToBackground (
|
|||
}
|
||||
|
||||
static PixmapPtr
|
||||
RACCreatePixmap(ScreenPtr pScreen, int w, int h, int depth)
|
||||
RACCreatePixmap(ScreenPtr pScreen, int w, int h, int depth, unsigned usage_hint)
|
||||
{
|
||||
PixmapPtr pPix;
|
||||
|
||||
DPRINT_S("RACCreatePixmap",pScreen->myNum);
|
||||
SCREEN_PROLOG ( CreatePixmap);
|
||||
ENABLE;
|
||||
pPix = (*pScreen->CreatePixmap) (pScreen, w, h, depth);
|
||||
pPix = (*pScreen->CreatePixmap) (pScreen, w, h, depth, usage_hint);
|
||||
SCREEN_EPILOG (CreatePixmap, RACCreatePixmap);
|
||||
|
||||
return pPix;
|
||||
|
|
|
|||
Loading…
Reference in a new issue