summaryrefslogtreecommitdiff
path: root/src/offscreen_manager.h
blob: 27d97a7bc53d3f51eec8519b7cacc239c7904f8a (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: xc/programs/Xserver/hw/xfree86/drivers/vmware/offscreen_manager.h,v 1.1 2002/12/10 04:17:19 dawes Exp $ */

#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