summaryrefslogtreecommitdiff
path: root/renderops.h
diff options
context:
space:
mode:
Diffstat (limited to 'renderops.h')
-rw-r--r--renderops.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/renderops.h b/renderops.h
index 07f9b8d..0dbcf8b 100644
--- a/renderops.h
+++ b/renderops.h
@@ -1,6 +1,7 @@
#ifndef RENDEROPS_H
#define RENDEROPS_H
+#include "surface.h"
#include <X11/extensions/Xrender.h>
struct RenderOp
@@ -10,17 +11,14 @@ struct RenderOp
int baseOp;
};
-typedef Picture (*PictureCreator)(int, int);
-struct PictureFactory
+struct TestScenario
{
- const char *format;
- PictureCreator creator;
+ char *name;
+ XRenderSurf *src;
+ XRenderSurf *dst;
+ XRenderSurf *mask;
};
-Picture ARGB32Creator(int w, int h);
-Picture RGB24Creator(int w, int h);
-Picture A8Creator(int w, int h);
-Picture A4Creator(int w, int h);
-Picture A1Creator(int w, int h);
+TestScenario *create_test_scenarios(Display *disp, Window win, int w, int h, int *number);
#endif