]> www.fi.muni.cz Git - evince.git/commit
Add an async renderer interface (method + callback) which is useful for
authorMarco Pesenti Gritti <mpg@redhat.com>
Tue, 7 Jun 2005 09:20:35 +0000 (09:20 +0000)
committerMarco Pesenti Gritti <marco@src.gnome.org>
Tue, 7 Jun 2005 09:20:35 +0000 (09:20 +0000)
commit421d3d8b0f2f2432ec02f57677da2964d339f2d8
treeac1ccd139b4b99b15b8f355e3b8aeca79e439621
parent2380ada377881c8e6bf00368f713ebd72e355dda
Add an async renderer interface (method + callback) which is useful for

2005-06-07  Marco Pesenti Gritti <mpg@redhat.com>

        * backend/Makefile.am:
        * backend/ev-async-renderer.c: (ev_async_renderer_get_type),
        (ev_async_renderer_class_init), (ev_async_renderer_render_pixbuf):
        * backend/ev-async-renderer.h:

        Add an async renderer interface (method + callback) which
        is useful for backends like ps.

        * backend/ev-job-queue.c: (remove_job_from_async_queue),
        (add_job_to_async_queue), (job_finished_cb), (handle_job),
        (ev_job_queue_run_next), (ev_job_queue_init), (find_queue),
        (ev_job_queue_add_job), (move_job_async), (move_job),
        (ev_job_queue_update_job), (ev_job_queue_remove_job):

        Add queues for async renderer, these are executed on the
        main thread.

        * backend/ev-jobs.c: (ev_job_render_new), (render_finished_cb),
        (ev_job_render_run):
        * backend/ev-jobs.h:

        If the backend support async renderer interface use it.

        * ps/ps-document.c: (ps_document_init), (push_pixbuf),
        (setup_pixmap), (ps_document_get_type),
        (ps_async_renderer_render_pixbuf),
        (ps_document_document_iface_init), (ps_async_renderer_iface_init):

        Implement async renderer interface.
ChangeLog
backend/Makefile.am
backend/ev-async-renderer.c [new file with mode: 0644]
backend/ev-async-renderer.h [new file with mode: 0644]
backend/ev-job-queue.c
backend/ev-jobs.c
backend/ev-jobs.h
ps/ps-document.c