summaryrefslogtreecommitdiff
path: root/source/fitz
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2017-07-21 13:44:13 +0200
committerTor Andersson <tor.andersson@artifex.com>2017-07-21 16:45:54 +0200
commitd44fb06a32a60c720ba1718fead002d67d56ca2a (patch)
tree2e646d8eb56ce46d696e2e634890c38f74eb11f2 /source/fitz
parent405b902281736cf0881f903cfb5bb188709da45e (diff)
downloadmupdf-d44fb06a32a60c720ba1718fead002d67d56ca2a.tar.xz
Allow caching of rendered tiles when using the display list.
Diffstat (limited to 'source/fitz')
-rw-r--r--source/fitz/list-device.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/fitz/list-device.c b/source/fitz/list-device.c
index 03f163a5..facac7b9 100644
--- a/source/fitz/list-device.c
+++ b/source/fitz/list-device.c
@@ -1160,6 +1160,7 @@ struct fz_list_tile_data_s
float xstep;
float ystep;
fz_rect view;
+ int id;
};
static int
@@ -1170,6 +1171,7 @@ fz_list_begin_tile(fz_context *ctx, fz_device *dev, const fz_rect *area, const f
tile.xstep = xstep;
tile.ystep = ystep;
tile.view = *view;
+ tile.id = id;
fz_append_display_node(
ctx,
dev,
@@ -1758,7 +1760,7 @@ visible:
fz_rect tile_rect;
tiled++;
tile_rect = data->view;
- cached = fz_begin_tile_id(ctx, dev, &rect, &tile_rect, data->xstep, data->ystep, &trans_ctm, n.flags);
+ cached = fz_begin_tile_id(ctx, dev, &rect, &tile_rect, data->xstep, data->ystep, &trans_ctm, data->id);
if (cached)
tile_skip_depth = 1;
break;