summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2018-08-10 15:12:16 +0200
committerRobin Watts <robin.watts@artifex.com>2018-09-19 17:13:45 +0100
commit6ff43c0f084b2ca5356ee6710b23fd751ce94749 (patch)
tree8a99682d6098d98a13b8f20af69b95ad8eff4fb6 /include
parent29af4a4709fea3ad06514083d3e96f08a202ebf4 (diff)
downloadmupdf-6ff43c0f084b2ca5356ee6710b23fd751ce94749.tar.xz
Make fz_page objects singleton.
Keep a list of currently open pages for each document. Attempting to load a page that is already loaded will return the same instance again.
Diffstat (limited to 'include')
-rw-r--r--include/mupdf/fitz/document.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/mupdf/fitz/document.h b/include/mupdf/fitz/document.h
index 3e6ac1e9..9b506cba 100644
--- a/include/mupdf/fitz/document.h
+++ b/include/mupdf/fitz/document.h
@@ -209,6 +209,7 @@ struct fz_annot_s
struct fz_page_s
{
int refs;
+ int number; /* page number */
fz_page_drop_page_fn *drop_page;
fz_page_bound_page_fn *bound_page;
fz_page_run_page_contents_fn *run_page_contents;
@@ -219,6 +220,7 @@ struct fz_page_s
fz_page_separation_disabled_fn *separation_disabled;
fz_page_separations_fn *separations;
fz_page_uses_overprint_fn *overprint;
+ fz_page **prev, *next; /* linked list of currently open pages */
};
/*
@@ -245,6 +247,7 @@ struct fz_document_s
fz_document_output_intent_fn *get_output_intent;
int did_layout;
int is_reflowable;
+ fz_page *open; /* linked list of currently open pages */
};
/*