summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSøren Sandmann Pedersen <ssp@redhat.com>2012-10-01 04:06:19 -0400
committerSøren Sandmann Pedersen <ssp@redhat.com>2012-10-01 04:06:19 -0400
commit1456650747bcb3ee7789288a03672b6522879fd0 (patch)
tree8a94fe549507ab7ded6dce11bcee071aab526b54
parenta40bcf1e16164426956694a2512bde2d870ceec6 (diff)
print debug spew
-rw-r--r--src/cairo-pixman-surface.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/cairo-pixman-surface.c b/src/cairo-pixman-surface.c
index ac44d664..3831fe59 100644
--- a/src/cairo-pixman-surface.c
+++ b/src/cairo-pixman-surface.c
@@ -657,6 +657,8 @@ command_buffer_process (command_buffer_t *buffer, int width, int height)
switch (command->type)
{
case NEW_BLANK:
+ printf ("%d => blank\n", command->new_blank.id);
+
img = images[command->new_blank.based_on];
format = pixman_image_get_format (img);
if (format == 0)
@@ -668,18 +670,22 @@ command_buffer_process (command_buffer_t *buffer, int width, int height)
break;
case NEW_BROKEN:
+ printf ("Broken!\n");
goto out;
case NEW_WHITE:
+ printf ("%d => white\n", command->new_white.id);
images[command->new_white.id] = pixman_image_ref (white_img);
break;
case NEW_IMAGE:
+ printf ("%d => image\n", command->new_image.id);
images[command->new_image.id] =
pixman_image_ref (command->new_image.image);
break;
case NEW_REGION:
+ printf ("%d => region\n", command->new_region.id);
if (!(img = pixman_image_create_bits (
PIXMAN_a8, width, height, NULL, -1)))
{
@@ -692,6 +698,7 @@ command_buffer_process (command_buffer_t *buffer, int width, int height)
break;
case NEW_TRAPS:
+ printf ("%d => traps\n", command->new_traps.id);
switch (command->new_traps.antialias)
{
case CAIRO_ANTIALIAS_NONE:
@@ -725,6 +732,7 @@ command_buffer_process (command_buffer_t *buffer, int width, int height)
break;
case NEW_GLYPHS:
+ printf ("%d => glyphs\n", command->new_traps.id);
format = pixman_glyph_get_mask_format (
command->new_glyphs.glyph_cache,
command->new_glyphs.n_glyphs,
@@ -743,6 +751,7 @@ command_buffer_process (command_buffer_t *buffer, int width, int height)
break;
case COMPOSITE:
+ printf ("composite %d (src: %d mask: %d dest: %d)\n", command->composite.op, command->composite.src, command->composite.mask, command->composite.dest);
pixman_image_composite32 (
command->composite.op,
images[command->composite.src],
@@ -753,6 +762,8 @@ command_buffer_process (command_buffer_t *buffer, int width, int height)
}
}
+ printf ("- done -\n");
+
status = CAIRO_INT_STATUS_SUCCESS;
out: