summaryrefslogtreecommitdiff
path: root/src/cairo.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-01-22 15:54:45 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2010-01-22 23:01:52 +0000
commit6b77567b6ef28710c7707ab82c7fa95c810152d1 (patch)
treebdeedad0ec53e1984ed1f319eccddf2ab14141dd /src/cairo.c
parent6bfcf3ea55964fee1c9b73818c3bb7cdacbc4f82 (diff)
path: Compute coarse bounds upon construction.
Frequently we only need the coarse path bounds, so avoid walking over the list of points once more as we can cheaply track the extents during construction.
Diffstat (limited to 'src/cairo.c')
-rw-r--r--src/cairo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cairo.c b/src/cairo.c
index 4be3e449..3cb9b365 100644
--- a/src/cairo.c
+++ b/src/cairo.c
@@ -60,10 +60,12 @@ static const cairo_t _cairo_nil = {
{ 0, 0 }, /* last_move_point */
{ 0, 0 }, /* current point */
FALSE, /* has_current_point */
+ FALSE, /* has_last_move_point */
FALSE, /* has_curve_to */
FALSE, /* is_box */
FALSE, /* maybe_fill_region */
TRUE, /* is_empty_fill */
+ { {0, 0}, {0, 0}}, /* extents */
{{{NULL,NULL}}} /* link */
}}
};