diff options
author | Lei Zhang <thestig@chromium.org> | 2015-09-10 16:12:44 -0700 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2015-09-10 16:12:44 -0700 |
commit | 70f4404e9a9e69afdfdd07715aa946f6561ce0cb (patch) | |
tree | 0c681df1e7bb78e9834555834ad464eb7bf2a929 /core/src/fxcodec/jbig2/JBig2_Context.h | |
parent | 6df59849472958e7de96da6d9fc7b223b7c1f1c3 (diff) | |
download | pdfium-70f4404e9a9e69afdfdd07715aa946f6561ce0cb.tar.xz |
Remove CJBig2_Object, CJBig2_Module, and friends.
R=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1326953006 .
Diffstat (limited to 'core/src/fxcodec/jbig2/JBig2_Context.h')
-rw-r--r-- | core/src/fxcodec/jbig2/JBig2_Context.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/core/src/fxcodec/jbig2/JBig2_Context.h b/core/src/fxcodec/jbig2/JBig2_Context.h index 0590fd157b..5ae6897bab 100644 --- a/core/src/fxcodec/jbig2/JBig2_Context.h +++ b/core/src/fxcodec/jbig2/JBig2_Context.h @@ -14,11 +14,10 @@ #include "../../../include/fxcodec/fx_codec_def.h" #include "JBig2_GeneralDecoder.h" #include "JBig2_List.h" -#include "JBig2_Module.h" #include "JBig2_Page.h" #include "JBig2_Segment.h" -using CJBig2_CachePair = std::pair<uint8_t*, CJBig2_SymbolDict*>; +using CJBig2_CachePair = std::pair<const uint8_t*, CJBig2_SymbolDict*>; #define JBIG2_SUCCESS 0 #define JBIG2_FAILED -1 @@ -35,13 +34,12 @@ using CJBig2_CachePair = std::pair<uint8_t*, CJBig2_SymbolDict*>; #define JBIG2_EMBED_STREAM 3 #define JBIG2_MIN_SEGMENT_SIZE 11 -class CJBig2_Context : public CJBig2_Object { +class CJBig2_Context { public: static CJBig2_Context* CreateContext( - CJBig2_Module* pModule, - uint8_t* pGlobalData, + const uint8_t* pGlobalData, FX_DWORD dwGlobalLength, - uint8_t* pData, + const uint8_t* pData, FX_DWORD dwLength, int32_t nStreamType, std::list<CJBig2_CachePair>* pSymbolDictCache, @@ -66,9 +64,9 @@ class CJBig2_Context : public CJBig2_Object { JBIG2_IN_PAGE, }; - CJBig2_Context(uint8_t* pGlobalData, + CJBig2_Context(const uint8_t* pGlobalData, FX_DWORD dwGlobalLength, - uint8_t* pData, + const uint8_t* pData, FX_DWORD dwLength, int32_t nStreamType, std::list<CJBig2_CachePair>* pSymbolDictCache, |