diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2017-07-21 13:44:13 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2017-07-21 16:45:54 +0200 |
commit | d44fb06a32a60c720ba1718fead002d67d56ca2a (patch) | |
tree | 2e646d8eb56ce46d696e2e634890c38f74eb11f2 /source/fitz | |
parent | 405b902281736cf0881f903cfb5bb188709da45e (diff) | |
download | mupdf-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.c | 4 |
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; |