summaryrefslogtreecommitdiff
path: root/libview/ev-pixbuf-cache.c
AgeCommit message (Collapse)AuthorFilesLines
2026-04-10libview: Account for device scale in page cache size calculationVictor Kareh1-1/+4
On HiDPI displays, rendered pages use more memory than the cache budget expects because the size calculation does not account for the device scale factor. This causes the cache to use up to 4x more memory than configured on 2x HiDPI displays.
2021-11-20Use a blank line at mostrbuj1-6/+0
2021-01-07Check whether the document page failed to renderrbuj1-0/+6
2020-08-23ev-pixbuf-cache: Remove -Wtype-limits warningsrbuj1-6/+6
2019-12-08libview: fixing memory leakGiselle Reis1-22/+21
The memory leak was caused by a g_signal_connect which was never disconnected. This patch makes sure the signal is disconnected and the job is cancelled before creating another rendering job. It additionally introduces a helper function to cleanly finalize the job. origin commit: https://gitlab.gnome.org/GNOME/evince/commit/939c434
2019-12-08Revert "First page should not reloaded"raveit651-1/+1
This reverts commit 00fad2c0d0fcdade570a08f046e85a4558f1fc0c. and fixes https://github.com/mate-desktop/atril/issues/404
2019-11-28avoid redundant redeclarationsPablo Barciela1-2/+0
2019-07-01Remove trailing whitespacesLaurent Napias1-11/+11
2019-06-26Bump Cairo version to 1.14.0Matthew Petroff1-8/+0
such that hi-dpi conditionals aren't needed. origin commit: https://github.com/linuxmint/xreader/commit/df3cdc6
2018-03-26libview: Fix g_return condition in set_device_scale_on_surface()Carlos Garcia Campos1-1/+1
Fail when device scale is not 1 if hidpi is not available, we were doing the opposite. origin commit: https://git.gnome.org/browse/evince/commit/?id=90a258
2018-03-26EvView: render correctly on hi-dpi displaysOwen W. Taylor1-2/+2
Make EvPixbufCache generate surfaces with extra resolution based on gtk_widget_get_scale_factor(). Handle cairo surfaces with a device scale in ev_view_draw(). Trigger an update of the pixbuf cache when the scale factor changes. https://bugzilla.gnome.org/show_bug.cgi?id=723431 origin commit: https://git.gnome.org/browse/evince/commit/?id=a612f8
2017-11-02fix crash when selecting text in djvu documentsmonsta1-2/+4
fixes https://github.com/mate-desktop/atril/issues/283 taken from: https://git.gnome.org/browse/evince/commit/?id=c5a338c00253aeb88901c574ea150b3bd83634e7
2017-09-06ev-pixbuf-cache: Clear the selection region also when clearing the job selectionCarlos Garcia Campos1-0/+5
orign commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=1a9ba34
2017-09-06ev-pixbuf-cache: fix the condition for when a new selection is neededCarlos Garcia Campos1-4/+4
If we don't have a selection surface/region and points has been set, we need a new selection surface/region even if the scale hasn't changed. origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=ca60329
2017-09-06libview: Return NULL instead of empty regions from the pixbuf cacheCarlos Garcia Campos1-2/+4
This way we just need to check the pointer returned. origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=bf18b54
2017-09-06ev-pixbuf-cache: schedule prev or next jobs first depending on the scroll ↵Carlos Garcia Campos1-14/+69
direction If we are scrolling down schedule next pages first, otherwise schedule the previous pages first. origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=b6f27b6
2017-09-06ev-pixbuf-cache: Schedule jobs to render previous pages in inverse orderCarlos Garcia Campos1-1/+1
origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=ceacd4e
2017-09-06libview: Use prepend + reverse instead of append to create selections listCarlos Garcia Campos1-4/+4
origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=c30e9b1
2017-09-06libview: Use GSlice to allocate EvViewSelectionCarlos Garcia Campos1-3/+3
These structs are allocated and deallocated a lot while selecting text and merging selection regions. orign commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=dc1e75b7be87
2017-09-06libview: Split ev_pixbuf_cache_get_selection_surface into two functionsJason Crain1-25/+98
ev_pixbuf_cache_get_selection_surface returns the selection surface, and new function ev_pixbuf_cache_get_selection_region returns the selection region. https://bugzilla.gnome.org/show_bug.cgi?id=669022 origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=90d6580
2017-09-06libview: Draw selection highlight from regionJason Crain1-29/+18
Allows a fallback for backends which can implement get_selection_region but not render_selection. Changes ev-pixbuf-cache so a redraw is only done when the scale changes. https://bugzilla.gnome.org/show_bug.cgi?id=669022 origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=9e89fb1
2017-08-12Add hi-dpi support for main view.Matthew Petroff1-14/+50
Based on Evince commits 8b965e769808815df9c75a10a0e4972c0904d26a and a612f809e4e23d88a661a9604ce84f332189a658. https://github.com/linuxmint/xreader/commit/4eccf6b
2017-02-20First page should not reloadednanxiongchao1-1/+1
For the displayed page, do not reload every time, should be displayed immediately Tested successfully on Loongson 3A2000 with fedora25(mips64el distribution).
2016-11-23move to GTK+3 (>= 3.14), drop GTK+2 code and --with-gtk build optionmonsta1-37/+0
and require caja >= 1.17.1
2014-12-10Gtk3: libview: Port EvView and EvPixbufCache to GtkStyleContextinfirit1-0/+41
Taken from evince commit: 7d5e358fb59172812ea0a4bf8ee6502405abc58e From: Carlos Garcia Campos <[email protected]>
2014-12-09libview: Make sure we have a valid page range before getting/setting ↵infirit1-0/+6
selection list Taken from evince commit: a3b87cb28e46958b37e384a47604032ea0889807 From: Carlos Garcia Campos <[email protected]> Gnome bug: https://bugzilla.gnome.org/show_bug.cgi?id=630999
2014-08-21Fix crash when clicking empty canvas while loading.Matvey Soloviev1-1/+1
2011-11-09inicialPerberos1-0/+1192