summaryrefslogtreecommitdiff
path: root/core/fxge
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-08-30 22:23:37 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-08-30 22:23:37 +0000
commit3b83e83fbfd24e521f7ecd7ce7f1019769bcaec7 (patch)
treec8aa119940a263837b589035f0f09111577d8926 /core/fxge
parent07388cae6fb525ccecc20f66ce530ac52d30d754 (diff)
downloadpdfium-3b83e83fbfd24e521f7ecd7ce7f1019769bcaec7.tar.xz
Use pdfium::span<> arg in A85 and RLE encoder methods
Change-Id: Iff900bc3e1cd9c9dd6b023230c1feba78759581c Reviewed-on: https://pdfium-review.googlesource.com/41710 Commit-Queue: Tom Sepez <tsepez@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fxge')
-rw-r--r--core/fxge/win32/cfx_psrenderer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/fxge/win32/cfx_psrenderer.cpp b/core/fxge/win32/cfx_psrenderer.cpp
index f5970a3ad1..dbc212123c 100644
--- a/core/fxge/win32/cfx_psrenderer.cpp
+++ b/core/fxge/win32/cfx_psrenderer.cpp
@@ -64,7 +64,7 @@ void PSCompressData(int PSLevel,
*filter = "/FlateDecode filter ";
}
} else {
- if (pEncoders->GetBasicModule()->RunLengthEncode(src_buf, src_size,
+ if (pEncoders->GetBasicModule()->RunLengthEncode({src_buf, src_size},
&dest_buf, &dest_size)) {
*filter = "/RunLengthDecode filter ";
}
@@ -689,8 +689,8 @@ void CFX_PSRenderer::WritePSBinary(const uint8_t* data, int len) {
uint8_t* dest_buf;
uint32_t dest_size;
CCodec_ModuleMgr* pEncoders = CPDF_ModuleMgr::Get()->GetCodecModule();
- if (pEncoders->GetBasicModule()->A85Encode(data, len, &dest_buf,
- &dest_size)) {
+ if (pEncoders->GetBasicModule()->A85Encode({data, static_cast<size_t>(len)},
+ &dest_buf, &dest_size)) {
m_pStream->WriteBlock(dest_buf, dest_size);
FX_Free(dest_buf);
} else {