summaryrefslogtreecommitdiff
path: root/core/fpdfapi/render/cpdf_dibbase.h
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-08-28 22:25:49 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-08-28 22:25:49 +0000
commit126927eaec336153e3be43086deee672829395f1 (patch)
tree1d00d1ad571fcc412fac54433b4061d36b570beb /core/fpdfapi/render/cpdf_dibbase.h
parent4d92af5ace491a2e87a6c73e5afa9ed53ac86bd0 (diff)
downloadpdfium-126927eaec336153e3be43086deee672829395f1.tar.xz
Use std::span<> in CCodec_JPEGModule
Also rename .cpp file to match class name and .h file. Modify some helper functions to operate on spans. Move some initializations to member declarations. Change-Id: Ie0889bda91daaef80fae6f5681f8ce068e92453b Reviewed-on: https://pdfium-review.googlesource.com/41534 Commit-Queue: Tom Sepez <tsepez@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fpdfapi/render/cpdf_dibbase.h')
-rw-r--r--core/fpdfapi/render/cpdf_dibbase.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/fpdfapi/render/cpdf_dibbase.h b/core/fpdfapi/render/cpdf_dibbase.h
index 423069db25..be48c3182d 100644
--- a/core/fpdfapi/render/cpdf_dibbase.h
+++ b/core/fpdfapi/render/cpdf_dibbase.h
@@ -22,6 +22,7 @@
#include "core/fxcrt/unowned_ptr.h"
#include "core/fxge/cfx_defaultrenderdevice.h"
#include "core/fxge/dib/cfx_dibbase.h"
+#include "third_party/base/span.h"
class CCodec_Jbig2Context;
class CCodec_ScanlineDecoder;
@@ -90,8 +91,7 @@ class CPDF_DIBBase final : public CFX_DIBBase {
RetainPtr<CFX_DIBitmap> LoadJpxBitmap();
void LoadPalette();
LoadState CreateDecoder();
- bool CreateDCTDecoder(const uint8_t* src_data,
- uint32_t src_size,
+ bool CreateDCTDecoder(pdfium::span<const uint8_t> src_data,
const CPDF_Dictionary* pParams);
void TranslateScanline24bpp(uint8_t* dest_scan,
const uint8_t* src_scan) const;