summaryrefslogtreecommitdiff
path: root/src/offscreen_manager.h
blob: 51f632685b86130024cf4f6b1091e81f552acad4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* **********************************************************
 * Copyright (C) 1998-2002 VMware, Inc.
 * All Rights Reserved
 * **********************************************************/
/* $XFree86$ */

#ifndef OFFSCREEN_MANAGER_H
#define OFFSCREEN_MANAGER_H

struct _Heap;
typedef struct _Heap Heap;

extern Heap* vmwareHeap_Create(CARD8* ptr, CARD32 size, CARD32 maxSlots,
                         CARD32 startOffset, CARD32 sWidth, CARD32 sHeight,
                         CARD32 sBPP, CARD32 sPitch, CARD32 sFbOffset);
extern void vmwareHeap_Destroy(Heap* heap);

extern void vmwareHeap_Clear(Heap* heap);

extern SVGASurface* vmwareHeap_GetFrontBuffer(Heap* heap);

extern SVGASurface* vmwareHeap_AllocSurface(Heap* heap, CARD32 width, CARD32 height,
                                      CARD32 pitch, CARD32 bpp);

#endif