diff options
author | Jeff Muizelaar <jeff@infidigm.net> | 2006-12-11 20:10:50 -0500 |
---|---|---|
committer | Jeff Muizelaar <jeff@infidigm.net> | 2006-12-11 20:10:50 -0500 |
commit | 0f75f5122f792c1d576af9ad51035a09623df507 (patch) | |
tree | a829b61d08639d8b94fc91a77f7bf7c38f4ff478 | |
parent | 2185ca0cfb8dffcc44c238682fea1d5a975b109c (diff) |
Don't call gdk_pixbuf_fill() before poppler_page_render_to_pixbuf().
We spend about 6% of the time in gdk_pixbuf_fill on a page throughput test.
-rw-r--r-- | test-poppler.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/test-poppler.c b/test-poppler.c index d366fd4..0fd7ce8 100644 --- a/test-poppler.c +++ b/test-poppler.c @@ -152,7 +152,6 @@ poppler_test_status_t poppler_test_page(char *pdf_file, PopplerDocument *documen poppler_page_get_size (page, &width, &height); pixbuf = gdk_pixbuf_new (GDK_COLORSPACE_RGB, FALSE, 8, width, height); - gdk_pixbuf_fill (pixbuf, 0x00106000); poppler_page_render_to_pixbuf (page, 0, 0, width, height, 1.0, 0, pixbuf); ret = gdk_pixbuf_compare(pixbuf, page_name); |