diff options
author | Lei Zhang <thestig@chromium.org> | 2018-09-19 17:27:44 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-09-19 17:27:44 +0000 |
commit | 41e49ec0259d4b02bf59fe581b9f48d7c2638456 (patch) | |
tree | e6a86ee6a6706d59dacabc6132621355b6da8638 /core/fpdfapi/parser/cpdf_stream_acc.h | |
parent | 211e87bcdf7c04895bd6055442a9530dc4d0be8e (diff) | |
download | pdfium-41e49ec0259d4b02bf59fe581b9f48d7c2638456.tar.xz |
Consolidate raw data processing path in CPDF_StreamAcc.
Add ProcessRawData() and ProcessFilteredData() helper methods for the
consolidated branches.
Change-Id: I88fb0ffb76e5d354bc311490a9d995e07fbc2174
Reviewed-on: https://pdfium-review.googlesource.com/42593
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fpdfapi/parser/cpdf_stream_acc.h')
-rw-r--r-- | core/fpdfapi/parser/cpdf_stream_acc.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/fpdfapi/parser/cpdf_stream_acc.h b/core/fpdfapi/parser/cpdf_stream_acc.h index 6ecfece5ab..611c78d0f6 100644 --- a/core/fpdfapi/parser/cpdf_stream_acc.h +++ b/core/fpdfapi/parser/cpdf_stream_acc.h @@ -47,6 +47,12 @@ class CPDF_StreamAcc final : public Retainable { void LoadAllData(bool bRawAccess, uint32_t estimated_size, bool bImageAcc); + void ProcessRawData(); + void ProcessFilteredData(uint32_t estimated_size, bool bImageAcc); + + // Reads the raw data from |m_pStream|, or return nullptr on failure. + std::unique_ptr<uint8_t, FxFreeDeleter> ReadRawStream() const; + uint8_t* m_pData = nullptr; uint32_t m_dwSize = 0; bool m_bNewBuf = false; |