diff options
author | Carlos Garcia Campos <carlosgc@gnome.org> | 2007-06-13 08:54:53 (GMT) |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@src.gnome.org> | 2007-06-13 08:54:53 (GMT) |
commit | 217797d63b2d3b1c9a7a0511af1bbf3d99f0d482 (patch) | |
tree | 7984c3b1bb57f723eb57c81f6ab4121b55e69510 /libdocument/ev-document-misc.h | |
parent | 83005d76d55eea57772ea2dc7224e45f856725be (diff) |
Use cairo image surfaces instead of GDK pixbufs for drawing pages and
2007-06-13 Carlos Garcia Campos <carlosgc@gnome.org>
* backend/dvi/dvi-document.c: (dvi_document_render),
(dvi_document_render_pixbuf), (dvi_document_document_iface_init):
* backend/impress/impress-document.c:
(imp_render_get_from_drawable), (impress_document_render_pixbuf),
(impress_document_render), (impress_document_document_iface_init),
(impress_document_thumbnails_get_thumbnail):
* backend/djvu/djvu-document-private.h:
* backend/djvu/djvu-document.c: (djvu_document_render),
(djvu_document_finalize), (djvu_document_document_iface_init),
(djvu_document_thumbnails_get_thumbnail), (djvu_document_init):
* backend/tiff/tiff-document.c: (tiff_document_render),
(tiff_document_render_pixbuf),
(tiff_document_document_iface_init):
* backend/pdf/ev-poppler.cc: (pdf_document_render),
(pdf_document_render_pixbuf), (pdf_document_document_iface_init),
(pdf_selection_render_selection):
* backend/comics/comics-document.c:
(comics_document_render_pixbuf), (comics_document_render),
(comics_document_document_iface_init):
* backend/pixbuf/pixbuf-document.c: (pixbuf_document_render),
(pixbuf_document_document_iface_init):
* libdocument/ev-document-misc.[ch]:
(ev_document_misc_surface_from_pixbuf),
(ev_document_misc_surface_rotate_and_scale):
* libdocument/ev-document.[ch]: (ev_document_render):
* libdocument/ev-selection.[ch]: (ev_selection_render_selection):
* shell/ev-pixbuf-cache.[ch]: (dispose_cache_job_info),
(move_one_job), (copy_job_to_job_info), (add_job_if_needed),
(ev_pixbuf_cache_get_surface), (new_selection_surface_needed),
(clear_selection_if_needed), (ev_pixbuf_cache_style_changed),
(ev_pixbuf_cache_get_selection_surface), (clear_job_selection):
* shell/ev-jobs.[ch]: (ev_job_render_dispose),
(render_finished_cb), (ev_job_render_run):
* shell/ev-view.c: (draw_loading_text), (draw_one_page),
(merge_selection_region):
Use cairo image surfaces instead of GDK pixbufs for drawing pages
and selections.
svn path=/trunk/; revision=2499
Diffstat (limited to 'libdocument/ev-document-misc.h')
-rw-r--r-- | libdocument/ev-document-misc.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libdocument/ev-document-misc.h b/libdocument/ev-document-misc.h index 5d84671..0860774 100644 --- a/libdocument/ev-document-misc.h +++ b/libdocument/ev-document-misc.h @@ -25,6 +25,7 @@ #include <gdk-pixbuf/gdk-pixbuf.h> #include <gtk/gtkstyle.h> +#include <cairo.h> G_BEGIN_DECLS @@ -40,6 +41,11 @@ void ev_document_misc_paint_one_page (GdkDrawable *drawable, GdkRectangle *area, GtkBorder *border, gboolean highlight); +cairo_surface_t *ev_document_misc_surface_from_pixbuf (GdkPixbuf *pixbuf); +cairo_surface_t *ev_document_misc_surface_rotate_and_scale (cairo_surface_t *surface, + gint dest_width, + gint dest_height, + gint dest_rotation); G_END_DECLS |