summaryrefslogtreecommitdiff
path: root/tests/conform
diff options
context:
space:
mode:
authorNeil Roberts <neil@linux.intel.com>2012-04-16 13:21:15 +0100
committerNeil Roberts <neil@linux.intel.com>2012-04-16 18:21:53 +0100
commitafc63f8211c230f8fd1f7801f9085627c46a8661 (patch)
tree3ebfbb49e0961cb50e0aaf8ee405cd288ccf8846 /tests/conform
parent06d522cb69643f51db2e20898ce524af5ab14892 (diff)
downloadcogl-afc63f8211c230f8fd1f7801f9085627c46a8661.tar.gz
Add a context member to CoglPath
cogl_path_new now takes a CoglContext pointer which it keeps a pointer to instead of relying on the global context. Reviewed-by: Robert Bragg <robert@linux.intel.com>
Diffstat (limited to 'tests/conform')
-rw-r--r--tests/conform/test-path.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/conform/test-path.c b/tests/conform/test-path.c
index 67f433ef..b5f604e3 100644
--- a/tests/conform/test-path.c
+++ b/tests/conform/test-path.c
@@ -76,7 +76,7 @@ paint (TestState *state)
/* Create a path filling just a quarter of a block. It will use two
rectangles so that we have a sub path in the path */
- path_a = cogl_path_new ();
+ path_a = cogl_path_new (test_ctx);
cogl_path_rectangle (path_a,
BLOCK_SIZE * 3 / 4, BLOCK_SIZE / 2,
BLOCK_SIZE, BLOCK_SIZE);
@@ -86,7 +86,7 @@ paint (TestState *state)
draw_path_at (path_a, 0, 0);
/* Create another path filling the whole block */
- path_b = cogl_path_new ();
+ path_b = cogl_path_new (test_ctx);
cogl_path_rectangle (path_b, 0, 0, BLOCK_SIZE, BLOCK_SIZE);
draw_path_at (path_b, 1, 0);
@@ -129,7 +129,7 @@ paint (TestState *state)
/* Draw a self-intersecting path. The part that intersects should be
inverted */
- path_a = cogl_path_new ();
+ path_a = cogl_path_new (test_ctx);
cogl_path_rectangle (path_a, 0, 0, BLOCK_SIZE, BLOCK_SIZE);
cogl_path_line_to (path_a, 0, BLOCK_SIZE / 2);
cogl_path_line_to (path_a, BLOCK_SIZE / 2, BLOCK_SIZE / 2);
@@ -140,7 +140,7 @@ paint (TestState *state)
/* Draw two sub paths. Where the paths intersect it should be
inverted */
- path_a = cogl_path_new ();
+ path_a = cogl_path_new (test_ctx);
cogl_path_rectangle (path_a, 0, 0, BLOCK_SIZE, BLOCK_SIZE);
cogl_path_rectangle (path_a,
BLOCK_SIZE / 2, BLOCK_SIZE / 2, BLOCK_SIZE, BLOCK_SIZE);
@@ -148,7 +148,7 @@ paint (TestState *state)
cogl_object_unref (path_a);
/* Draw a clockwise outer path */
- path_a = cogl_path_new ();
+ path_a = cogl_path_new (test_ctx);
cogl_path_move_to (path_a, 0, 0);
cogl_path_line_to (path_a, BLOCK_SIZE, 0);
cogl_path_line_to (path_a, BLOCK_SIZE, BLOCK_SIZE);