diff options
author | David Lattimore <dml@google.com> | 2015-10-09 08:18:20 +1100 |
---|---|---|
committer | David Lattimore <dml@google.com> | 2015-10-09 08:18:20 +1100 |
commit | f1b88e76134808f36f16b9e53a2e9dd89b12c8fd (patch) | |
tree | 215fae3dd4fe42787ea4cc2fa2a4d1e4cd587d76 /core/src/fxcodec/jbig2/JBig2_Segment.h | |
parent | 8793b4a071fad51a770b93838e0752505b020e43 (diff) | |
download | pdfium-f1b88e76134808f36f16b9e53a2e9dd89b12c8fd.tar.xz |
Various changes to JBig2 cache:
- Makes the cache be per-document
- Keys the cache on ObjNum and stream offset instead of keying on a pointer to the data (which can result in false cache hits).
- Makes it so the cache is only used for the globals stream.
- Reenable the cache.
R=thestig@chromium.org
BUG=pdfium:207
Review URL: https://codereview.chromium.org/1380243004 .
Diffstat (limited to 'core/src/fxcodec/jbig2/JBig2_Segment.h')
-rw-r--r-- | core/src/fxcodec/jbig2/JBig2_Segment.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/src/fxcodec/jbig2/JBig2_Segment.h b/core/src/fxcodec/jbig2/JBig2_Segment.h index b80a5d282f..4aef27289a 100644 --- a/core/src/fxcodec/jbig2/JBig2_Segment.h +++ b/core/src/fxcodec/jbig2/JBig2_Segment.h @@ -50,7 +50,8 @@ class CJBig2_Segment { FX_DWORD m_dwData_length; FX_DWORD m_dwHeader_Length; - const uint8_t* m_pData; + FX_DWORD m_dwObjNum; + FX_DWORD m_dwDataOffset; JBig2_SegmentState m_State; JBig2_ResultType m_nResultType; union { |