summaryrefslogtreecommitdiff
path: root/winrt/mupdfwinrt/muctx.h
diff options
context:
space:
mode:
authorMichael Vrhel <michael.vrhel@artifex.com>2013-06-09 12:28:15 -0700
committerRobin Watts <robin.watts@artifex.com>2013-06-14 21:18:04 +0100
commit5df70acc4e3ae23ed949d80b4c90d651765088ea (patch)
treefb5b50f82af8f4d8a1a9ddbd63ebe257753912a4 /winrt/mupdfwinrt/muctx.h
parentd581118e2d0ff407cfb918fcdd76b220d798725b (diff)
downloadmupdf-5df70acc4e3ae23ed949d80b4c90d651765088ea.tar.xz
Addition of display list rendering in WinRT library
The display list rendering is used when scaling within the current page to enable quicker response.
Diffstat (limited to 'winrt/mupdfwinrt/muctx.h')
-rw-r--r--winrt/mupdfwinrt/muctx.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/winrt/mupdfwinrt/muctx.h b/winrt/mupdfwinrt/muctx.h
index d35718d9..d22009a0 100644
--- a/winrt/mupdfwinrt/muctx.h
+++ b/winrt/mupdfwinrt/muctx.h
@@ -80,6 +80,8 @@ private:
fz_locks_context mu_locks;
fz_context *mu_ctx;
fz_document *mu_doc;
+ fz_display_list *mu_dlist;
+ int dlist_pagenum;
fz_outline *mu_outline;
fz_rect mu_hit_bbox[MAX_SEARCH];
void FlattenOutline(fz_outline *outline, int level,
@@ -92,7 +94,9 @@ public:
status_t InitializeStream(IRandomAccessStream^ readStream, char *ext);
int GetPageCount();
status_t InitializeContext();
- status_t RenderPage(int page_num, int width, int height, unsigned char *bmp_data);
+ status_t RenderPage(int page_num, int width, int height, unsigned char *bmp_data, bool use_dlist);
+ status_t CreateDisplayList(int page_num);
+ int GetDisplayListPage(void);
Point MeasurePage(int page_num);
Point MeasurePage(fz_page *page);
int GetLinks(int page_num, sh_vector_link links_vec);