save two blitbuffer memory allocations for crengine on each page turn

One for drawbuffer at CreDocument:drawCurrentView and another for
resizing of drawBuf at cre.drawCurrentPage.
This commit is contained in:
chrox
2014-10-27 22:03:20 +08:00
parent f7cf20f86b
commit c2726a8f62
3 changed files with 11 additions and 6 deletions

View File

@@ -237,7 +237,7 @@ function Document:renderPage(pageno, rect, zoom, rotation, gamma, render_mode)
-- prepare cache item with contained blitbuffer
local tile = TileCacheItem:new{
size = size.w * size.h / 2 + 64, -- estimation
size = size.w * size.h + 64, -- estimation
excerpt = size,
pageno = pageno,
bb = Blitbuffer.new(size.w, size.h)