shadowfb.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef _SHADOWFB_H
  2. #define _SHADOWFB_H
  3. #include "xf86str.h"
  4. /*
  5. * User defined callback function. Passed a pointer to the ScrnInfo struct,
  6. * the number of dirty rectangles, and a pointer to the first dirty rectangle
  7. * in the array.
  8. */
  9. typedef void (*RefreshAreaFuncPtr) (ScrnInfoPtr, int, BoxPtr);
  10. /*
  11. * ShadowFBInit initializes the shadowfb subsystem. refreshArea is a pointer
  12. * to a user supplied callback function. This function will be called after
  13. * any operation that modifies the framebuffer. The newly dirtied rectangles
  14. * are passed to the callback.
  15. *
  16. * Returns FALSE in the event of an error.
  17. */
  18. extern _X_EXPORT Bool
  19. ShadowFBInit(ScreenPtr pScreen, RefreshAreaFuncPtr refreshArea);
  20. /*
  21. * ShadowFBInit2 is a more featureful refinement of the original shadowfb.
  22. * ShadowFBInit2 allows you to specify two callbacks, one to be called
  23. * immediately before an operation that modifies the framebuffer, and another
  24. * to be called immediately after.
  25. *
  26. * Returns FALSE in the event of an error
  27. */
  28. extern _X_EXPORT Bool
  29. ShadowFBInit2(ScreenPtr pScreen,
  30. RefreshAreaFuncPtr preRefreshArea,
  31. RefreshAreaFuncPtr postRefreshArea);
  32. #endif /* _SHADOWFB_H */