Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/libview/ev-pixbuf-cache.h
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2010-05-31 15:57:33 (GMT)
committer Carlos Garcia Campos <carlosgc@gnome.org>2010-05-31 16:57:59 (GMT)
commitd375c36972ff3a01b7979984b5a1043eb4c807b0 (patch)
tree17f63422f7a6a9c3285a199bb6386e77f340473d /libview/ev-pixbuf-cache.h
parent51261c0750f10aa8cc8687857a0a3b932fd87e3c (diff)
Use a dynamic pixbuf cache size based on document page size
Instead of using a static number of pages to cache, we use a size in bytes, and the number of pages that will be cached depends on the current zoom level. It allows us caching more pages for lower scale factors and increase zoom level by caching fewer pages. See bug #303365.
Diffstat (limited to 'libview/ev-pixbuf-cache.h')
-rw-r--r--libview/ev-pixbuf-cache.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/libview/ev-pixbuf-cache.h b/libview/ev-pixbuf-cache.h
index af71546..bdf6743 100644
--- a/libview/ev-pixbuf-cache.h
+++ b/libview/ev-pixbuf-cache.h
@@ -31,6 +31,7 @@
#include <gtk/gtk.h>
#include <evince-document.h>
+#include <evince-view.h>
G_BEGIN_DECLS
@@ -55,7 +56,10 @@ typedef struct _EvPixbufCacheClass EvPixbufCacheClass;
GType ev_pixbuf_cache_get_type (void) G_GNUC_CONST;
EvPixbufCache *ev_pixbuf_cache_new (GtkWidget *view,
- EvDocument *document);
+ EvDocumentModel *model,
+ gsize max_size);
+void ev_pixbuf_cache_set_max_size (EvPixbufCache *pixbuf_cache,
+ gsize max_size);
void ev_pixbuf_cache_set_page_range (EvPixbufCache *pixbuf_cache,
gint start_page,
gint end_page,