diff options
author | Robin Watts <robin.watts@artifex.com> | 2015-04-03 12:01:49 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2015-04-06 19:31:59 +0100 |
commit | 4c9611cb3d9f18322f8e77f8ba493799d77c0a0a (patch) | |
tree | d8b8fa3450ba94391d30ab61038ee97cfbabbc6d /platform/windows/mupdfwinrt/Cache.h | |
parent | 1ed4656f99a09f38216d11275fe85bb75c0d635a (diff) | |
download | mupdf-4c9611cb3d9f18322f8e77f8ba493799d77c0a0a.tar.xz |
Remove gsview from mupdf repo.
It has its own repo now. See http://git.ghostscript.com/?p=gsview.git
Diffstat (limited to 'platform/windows/mupdfwinrt/Cache.h')
-rw-r--r-- | platform/windows/mupdfwinrt/Cache.h | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/platform/windows/mupdfwinrt/Cache.h b/platform/windows/mupdfwinrt/Cache.h deleted file mode 100644 index e8c9801d..00000000 --- a/platform/windows/mupdfwinrt/Cache.h +++ /dev/null @@ -1,38 +0,0 @@ -#pragma once - -#include <mutex> -extern "C" { - #include "mupdf/fitz.h" -} - -#define MAX_DISPLAY_CACHE_SIZE 3 - -typedef struct cache_entry_s cache_entry_t; - -struct cache_entry_s -{ - int number; - int width; - int height; - fz_display_list *dlist; - cache_entry_t *next; - cache_entry_t *prev; - int index; -}; - -class Cache -{ -private: - int size; - cache_entry_t *head; - cache_entry_t *tail; - std::mutex cache_lock; - -public: - Cache(void); - ~Cache(void); - void GetSize(int *width, int *height); - fz_display_list* Use(int value, int *width, int *height, fz_context *mu_ctx); - void Add(int value, int width, int height, fz_display_list *dlist, fz_context *mu_ctx); - void Empty(fz_context *mu_ctx); -}; |