summaryrefslogtreecommitdiff
path: root/randr/rrtransform.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2010-12-03 22:08:06 -0800
committerKeith Packard <keithp@keithp.com>2010-12-06 20:08:40 -0800
commit66294afcab7b7a82f7dd897767e46c48a94b8ee8 (patch)
treef4a8c85a9b9cee4131c475df68ddda01d7c65baa /randr/rrtransform.h
parentc8bc25fd7629df10f2825b7cc713b031ae78f223 (diff)
randr: Add sprite position transforms
This implements sprite position transformations. Sprite image transforms are passed all the way to the DDX layer, but the images are not yet manipulated before being passed to the drivers. Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Aaron Plattner <aplattner@nvidia.com>
Diffstat (limited to 'randr/rrtransform.h')
-rw-r--r--randr/rrtransform.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/randr/rrtransform.h b/randr/rrtransform.h
index 561762dfe..5cfcf8d65 100644
--- a/randr/rrtransform.h
+++ b/randr/rrtransform.h
@@ -59,6 +59,13 @@ RRTransformSetFilter (RRTransformPtr dst,
extern _X_EXPORT Bool
RRTransformCopy (RRTransformPtr dst, RRTransformPtr src);
+/*
+ * Compute the complete transformation matrix including
+ * client-specified transform, rotation/reflection values and the crtc
+ * offset.
+ *
+ * Return TRUE if the resulting transform is not a simple translation.
+ */
extern _X_EXPORT Bool
RRTransformCompute (int x,
int y,
@@ -66,10 +73,14 @@ RRTransformCompute (int x,
int height,
Rotation rotation,
RRTransformPtr rr_transform,
+ struct pict_f_transform *sprite_position_transform,
+ struct pict_f_transform *sprite_image_transform,
PictTransformPtr transform,
struct pict_f_transform *f_transform,
- struct pict_f_transform *f_inverse);
-
+ struct pict_f_transform *f_inverse,
+ struct pict_f_transform *f_fb_to_sprite,
+ struct pict_f_transform *f_sprite_to_image,
+ Bool *sprite_transform_in_use);
#endif /* _RRTRANSFORM_H_ */