summaryrefslogtreecommitdiff
path: root/render/picturestr.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2008-03-14 13:46:30 -0700
committerKeith Packard <keithp@keithp.com>2008-11-24 13:24:36 -0800
commitacda790e430b2a18c7c35379f6e538f3d01ff221 (patch)
tree0121ae5b2f8d784564ac75666c1a094a1c9592a0 /render/picturestr.h
parente3d6f279d5c305dfb81ca109fbfb665870712d2f (diff)
[render] Split out filter finding from filter setting.
To prepare for RandR using filters in transforms, split out code paths so that the RandR code can validate the filter name and parameters during the transform set operation so that use of the filter later will not have unreportable errors.
Diffstat (limited to 'render/picturestr.h')
-rw-r--r--render/picturestr.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/render/picturestr.h b/render/picturestr.h
index 93d86bd47..8a926ce90 100644
--- a/render/picturestr.h
+++ b/render/picturestr.h
@@ -184,7 +184,7 @@ typedef struct _Picture {
SourcePictPtr pSourcePict;
} PictureRec;
-typedef Bool (*PictFilterValidateParamsProcPtr) (PicturePtr pPicture, int id,
+typedef Bool (*PictFilterValidateParamsProcPtr) (ScreenPtr pScreen, int id,
xFixed *params, int nparams);
typedef struct {
char *name;
@@ -473,7 +473,12 @@ PictFilterPtr
PictureFindFilter (ScreenPtr pScreen, char *name, int len);
int
-SetPictureFilter (PicturePtr pPicture, char *name, int len, xFixed *params, int nparams);
+SetPicturePictFilter (PicturePtr pPicture, PictFilterPtr pFilter,
+ xFixed *params, int nparams);
+
+int
+SetPictureFilter (PicturePtr pPicture, char *name, int len,
+ xFixed *params, int nparams);
Bool
PictureFinishInit (void);