diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-08-16 20:51:08 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-08-16 20:51:08 +0000 |
commit | aa987a9a895d42749c0f5e4092618fe7ded6667e (patch) | |
tree | cb90d6994b6badbf0ea279d08830df96175bb604 /core/fxcodec/codec | |
parent | 0a4445ad1c3d76f8eb1b6b3e443a9a731430c237 (diff) | |
download | pdfium-aa987a9a895d42749c0f5e4092618fe7ded6667e.tar.xz |
Remove default arg from CFX_BinaryBuf::EstimateSize().
Disentangle setting an allocation step from estimating size, these
separate concepts can be handled separately.
Change-Id: I27bf3e193018a4377ccf266207b889fdb672826c
Reviewed-on: https://pdfium-review.googlesource.com/40210
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fxcodec/codec')
-rw-r--r-- | core/fxcodec/codec/fx_codec_fax.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fxcodec/codec/fx_codec_fax.cpp b/core/fxcodec/codec/fx_codec_fax.cpp index 2c85e2dc8b..aabc110010 100644 --- a/core/fxcodec/codec/fx_codec_fax.cpp +++ b/core/fxcodec/codec/fx_codec_fax.cpp @@ -759,7 +759,7 @@ CCodec_FaxEncoder::CCodec_FaxEncoder(const uint8_t* src_buf, m_RefLine.resize(m_Pitch); memset(m_RefLine.data(), 0xff, m_Pitch); m_pLineBuf = FX_Alloc2D(uint8_t, m_Pitch, 8); - m_DestBuf.EstimateSize(0, 10240); + m_DestBuf.SetAllocStep(10240); } CCodec_FaxEncoder::~CCodec_FaxEncoder() { |