diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-07-26 08:02:59 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-07-26 08:02:59 +0100 |
commit | 8ba8534d6225a4340acd1469858067e40f48acc3 (patch) | |
tree | 70f97a6120d6b923149b63718de3352d8fe038d5 /src/cairo-rectangle.c | |
parent | f5d602cb59ad8eec19dc07043635a50eb7616e09 (diff) | |
download | cairo-8ba8534d6225a4340acd1469858067e40f48acc3.tar.gz |
record: Store the untransformed operation extents along with the command
This allows us to actually clip out the geometry before we record it, as
suggested by allowing the user to supply an extents... But it will be
advantageous in later patches for reducing the amount of work we need to
perform to replay.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/cairo-rectangle.c')
-rw-r--r-- | src/cairo-rectangle.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cairo-rectangle.c b/src/cairo-rectangle.c index 3a541eba4..b0b6d9ec9 100644 --- a/src/cairo-rectangle.c +++ b/src/cairo-rectangle.c @@ -41,6 +41,13 @@ #include "cairo-box-private.h" +const cairo_rectangle_int_t _cairo_empty_rectangle = { 0, 0, 0, 0 }; +const cairo_rectangle_int_t _cairo_unbounded_rectangle = { + CAIRO_RECT_INT_MIN, CAIRO_RECT_INT_MIN, + CAIRO_RECT_INT_MAX - CAIRO_RECT_INT_MIN, + CAIRO_RECT_INT_MAX - CAIRO_RECT_INT_MIN, +}; + cairo_private void _cairo_box_from_doubles (cairo_box_t *box, double *x1, double *y1, |