1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-22 13:00:08 +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 #endif
/* /*
* multi thread disabled by WangLu * pdf2htmlEX: disabled multi thread
#if MULTITHREADED #if MULTITHREADED
# define fontEngineLocker() MutexLocker locker(&mutex) # define fontEngineLocker() MutexLocker locker(&mutex)
#else #else
@ -768,7 +768,7 @@ CairoFontEngine::CairoFontEngine(FT_Library libA) {
useCIDs = major > 2 || useCIDs = major > 2 ||
(major == 2 && (minor > 1 || (minor == 1 && patch > 7))); (major == 2 && (minor > 1 || (minor == 1 && patch > 7)));
/* /*
* multi thread disabled by WangLu * pdf2htmlEX: disabled multi thread
#if MULTITHREADED #if MULTITHREADED
gInitMutex(&mutex); gInitMutex(&mutex);
#endif #endif
@ -783,7 +783,7 @@ CairoFontEngine::~CairoFontEngine() {
delete fontCache[i]; delete fontCache[i];
} }
/* /*
* multi thread disabled by WangLu * pdf2htmlEX: disabled multi thread
#if MULTITHREADED #if MULTITHREADED
gDestroyMutex(&mutex); gDestroyMutex(&mutex);
#endif #endif

View File

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

View File

@ -272,7 +272,9 @@ protected:
cairo_filter_t getFilterForSurface(cairo_surface_t *image, cairo_filter_t getFilterForSurface(cairo_surface_t *image,
GBool interpolate); GBool interpolate);
GBool getStreamData (Stream *str, char **buffer, int *length); 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 fillToStrokePathClip(GfxState *state);
void alignStrokeCoords(GfxSubpath *subpath, int i, double *x, double *y); void alignStrokeCoords(GfxSubpath *subpath, int i, double *x, double *y);