2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
#ifndef _SHADOWFB_H
|
|
|
|
#define _SHADOWFB_H
|
|
|
|
|
|
|
|
#include "xf86str.h"
|
|
|
|
|
|
|
|
/*
|
|
|
|
* User defined callback function. Passed a pointer to the ScrnInfo struct,
|
|
|
|
* the number of dirty rectangles, and a pointer to the first dirty rectangle
|
|
|
|
* in the array.
|
|
|
|
*/
|
2012-06-10 07:21:05 -06:00
|
|
|
typedef void (*RefreshAreaFuncPtr) (ScrnInfoPtr, int, BoxPtr);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
/*
|
|
|
|
* ShadowFBInit initializes the shadowfb subsystem. refreshArea is a pointer
|
|
|
|
* to a user supplied callback function. This function will be called after
|
|
|
|
* any operation that modifies the framebuffer. The newly dirtied rectangles
|
|
|
|
* are passed to the callback.
|
|
|
|
*
|
|
|
|
* Returns FALSE in the event of an error.
|
|
|
|
*/
|
2010-07-27 13:02:24 -06:00
|
|
|
extern _X_EXPORT Bool
|
2012-06-10 07:21:05 -06:00
|
|
|
ShadowFBInit(ScreenPtr pScreen, RefreshAreaFuncPtr refreshArea);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
/*
|
|
|
|
* ShadowFBInit2 is a more featureful refinement of the original shadowfb.
|
|
|
|
* ShadowFBInit2 allows you to specify two callbacks, one to be called
|
|
|
|
* immediately before an operation that modifies the framebuffer, and another
|
2015-09-16 13:10:19 -06:00
|
|
|
* to be called immediately after.
|
2006-11-26 11:13:41 -07:00
|
|
|
*
|
|
|
|
* Returns FALSE in the event of an error
|
|
|
|
*/
|
2010-07-27 13:02:24 -06:00
|
|
|
extern _X_EXPORT Bool
|
2006-11-26 11:13:41 -07:00
|
|
|
|
2012-06-10 07:21:05 -06:00
|
|
|
ShadowFBInit2(ScreenPtr pScreen,
|
|
|
|
RefreshAreaFuncPtr preRefreshArea,
|
|
|
|
RefreshAreaFuncPtr postRefreshArea);
|
|
|
|
|
|
|
|
#endif /* _SHADOWFB_H */
|