1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-21 20:50:07 +00:00

marked changes for pdf2htmlEX

This commit is contained in:
Lu Wang 2015-07-22 17:22:16 +08:00
parent fa01e025f9
commit 2aaa2ffb1e
3 changed files with 7 additions and 5 deletions

View File

@ -59,7 +59,7 @@
#endif
/*
* multi thread disabled by WangLu
* pdf2htmlEX: disabled multi thread
#if MULTITHREADED
# define fontEngineLocker() MutexLocker locker(&mutex)
#else
@ -768,7 +768,7 @@ CairoFontEngine::CairoFontEngine(FT_Library libA) {
useCIDs = major > 2 ||
(major == 2 && (minor > 1 || (minor == 1 && patch > 7)));
/*
* multi thread disabled by WangLu
* pdf2htmlEX: disabled multi thread
#if MULTITHREADED
gInitMutex(&mutex);
#endif
@ -783,7 +783,7 @@ CairoFontEngine::~CairoFontEngine() {
delete fontCache[i];
}
/*
* multi thread disabled by WangLu
* pdf2htmlEX: disabled multi thread
#if MULTITHREADED
gDestroyMutex(&mutex);
#endif

View File

@ -122,7 +122,7 @@ private:
FT_Library lib;
GBool useCIDs;
/*
* multi thread disabled by WangLu
* pdf2htmlEX: disabled multi thread
#if MULTITHREADED
GooMutex mutex;
#endif

View File

@ -272,7 +272,9 @@ protected:
cairo_filter_t getFilterForSurface(cairo_surface_t *image,
GBool interpolate);
GBool getStreamData (Stream *str, char **buffer, int *length);
virtual void setMimeData(Stream *str, Object *ref, cairo_surface_t *image);
// pdf2htmlEX: make setMimeData virtual, we need to override it
virtual
void setMimeData(Stream *str, Object *ref, cairo_surface_t *image);
void fillToStrokePathClip(GfxState *state);
void alignStrokeCoords(GfxSubpath *subpath, int i, double *x, double *y);