diff options
author | Bo Xu <bo_xu@foxitsoftware.com> | 2015-01-05 10:48:34 -0800 |
---|---|---|
committer | Bo Xu <bo_xu@foxitsoftware.com> | 2015-01-05 10:48:34 -0800 |
commit | 17b5cf451cfcd5ec614d1d4e1afd8daa8b5d8699 (patch) | |
tree | 7408e549a5b9934817f6a93d90ba749978f273e2 /core/src/fxcodec/jbig2/JBig2_Context.h | |
parent | 07f10ae2eede1ad1fbb4424064eaaaa77dfb90d2 (diff) | |
download | pdfium-17b5cf451cfcd5ec614d1d4e1afd8daa8b5d8699.tar.xz |
Remove static declared SymbolDictCache.
This is a follow up CL on https://codereview.chromium.org/761313004/
BUG=https://code.google.com/p/pdfium/issues/detail?id=93
R=brucedawson@chromium.org, tsepez@chromium.org
Review URL: https://codereview.chromium.org/828183002
Diffstat (limited to 'core/src/fxcodec/jbig2/JBig2_Context.h')
-rw-r--r-- | core/src/fxcodec/jbig2/JBig2_Context.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/core/src/fxcodec/jbig2/JBig2_Context.h b/core/src/fxcodec/jbig2/JBig2_Context.h index 90bd7ddbbe..f46530e005 100644 --- a/core/src/fxcodec/jbig2/JBig2_Context.h +++ b/core/src/fxcodec/jbig2/JBig2_Context.h @@ -13,6 +13,8 @@ #include "JBig2_GeneralDecoder.h" #include "../../../include/fxcodec/fx_codec_def.h" #include "../../../include/fxcrt/fx_basic.h" +#include <utility> +typedef std::pair<FX_BYTE*, CJBig2_SymbolDict*> CJBig2_CachePair; typedef enum { JBIG2_OUT_OF_PAGE = 0, JBIG2_IN_PAGE, @@ -36,7 +38,7 @@ class CJBig2_Context : public CJBig2_Object public: static CJBig2_Context *CreateContext(CJBig2_Module *pModule, FX_BYTE *pGlobalData, FX_DWORD dwGlobalLength, - FX_BYTE *pData, FX_DWORD dwLength, FX_INT32 nStreamType, IFX_Pause* pPause = NULL); + FX_BYTE *pData, FX_DWORD dwLength, FX_INT32 nStreamType, std::list<CJBig2_CachePair>* pSymbolDictCache, IFX_Pause* pPause = NULL); static void DestroyContext(CJBig2_Context *pContext); @@ -55,7 +57,7 @@ public: private: CJBig2_Context(FX_BYTE *pGlobalData, FX_DWORD dwGlobalLength, - FX_BYTE *pData, FX_DWORD dwLength, FX_INT32 nStreamType, IFX_Pause* pPause); + FX_BYTE *pData, FX_DWORD dwLength, FX_INT32 nStreamType, std::list<CJBig2_CachePair>* pSymbolDictCache, IFX_Pause* pPause); ~CJBig2_Context(); @@ -131,5 +133,6 @@ private: CJBig2_Segment *m_pSegment; FX_DWORD m_dwOffset; JBig2RegionInfo m_ri; + std::list<CJBig2_CachePair>* m_pSymbolDictCache; }; #endif |