Line | |
---|
1 | /* $XFree86: xc/programs/Xserver/hw/xfree86/shadowfb/shadowfb.h,v 1.3 2002/10/16 22:12:54 alanh Exp $ */
|
---|
2 |
|
---|
3 | #ifndef _SHADOWFB_H
|
---|
4 | #define _SHADOWFB_H
|
---|
5 |
|
---|
6 | #include "xf86str.h"
|
---|
7 |
|
---|
8 | /*
|
---|
9 | * User defined callback function. Passed a pointer to the ScrnInfo struct,
|
---|
10 | * the number of dirty rectangles, and a pointer to the first dirty rectangle
|
---|
11 | * in the array.
|
---|
12 | */
|
---|
13 | typedef void (*RefreshAreaFuncPtr)(ScrnInfoPtr, int, BoxPtr);
|
---|
14 |
|
---|
15 | /*
|
---|
16 | * ShadowFBInit initializes the shadowfb subsystem. refreshArea is a pointer
|
---|
17 | * to a user supplied callback function. This function will be called after
|
---|
18 | * any operation that modifies the framebuffer. The newly dirtied rectangles
|
---|
19 | * are passed to the callback.
|
---|
20 | *
|
---|
21 | * Returns FALSE in the event of an error.
|
---|
22 | */
|
---|
23 | Bool
|
---|
24 | ShadowFBInit (
|
---|
25 | ScreenPtr pScreen,
|
---|
26 | RefreshAreaFuncPtr refreshArea
|
---|
27 | );
|
---|
28 |
|
---|
29 | /*
|
---|
30 | * ShadowFBInit2 is a more featureful refinement of the original shadowfb.
|
---|
31 | * ShadowFBInit2 allows you to specify two callbacks, one to be called
|
---|
32 | * immediately before an operation that modifies the framebuffer, and another
|
---|
33 | * to be called immediately after.
|
---|
34 | *
|
---|
35 | * Returns FALSE in the event of an error
|
---|
36 | */
|
---|
37 | Bool
|
---|
38 | ShadowFBInit2 (
|
---|
39 | ScreenPtr pScreen,
|
---|
40 | RefreshAreaFuncPtr preRefreshArea,
|
---|
41 | RefreshAreaFuncPtr postRefreshArea
|
---|
42 | );
|
---|
43 |
|
---|
44 | #endif /* _SHADOWFB_H */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.