summaryrefslogtreecommitdiff
path: root/core/fxcodec/codec/ccodec_bmpmodule.h
diff options
context:
space:
mode:
authorNicolas Pena <npm@chromium.org>2017-06-19 11:36:42 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-06-19 16:19:54 +0000
commitbc29701214bf96bfacbef04b345bee76fd7bce84 (patch)
treecaa404141f9e13200b380294f9ba5efccc149862 /core/fxcodec/codec/ccodec_bmpmodule.h
parentc533f4b7390afc3b372c0184d274053039ac264d (diff)
downloadpdfium-bc29701214bf96bfacbef04b345bee76fd7bce84.tar.xz
Make out_row_buffer an std::vector
The out_row_buffer of BMPDecompressor is made a vector. This forces the class to have constructor/destructor. Some other members were changed to be of size_t instead of int32_t. Change-Id: I3f70b0322dcee2ddf9a00da7962b43f3415ba545 Reviewed-on: https://pdfium-review.googlesource.com/6691 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fxcodec/codec/ccodec_bmpmodule.h')
-rw-r--r--core/fxcodec/codec/ccodec_bmpmodule.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/fxcodec/codec/ccodec_bmpmodule.h b/core/fxcodec/codec/ccodec_bmpmodule.h
index 10bc6b714e..4009150c59 100644
--- a/core/fxcodec/codec/ccodec_bmpmodule.h
+++ b/core/fxcodec/codec/ccodec_bmpmodule.h
@@ -8,6 +8,7 @@
#define CORE_FXCODEC_CODEC_CCODEC_BMPMODULE_H_
#include <memory>
+#include <vector>
#include "core/fxcrt/cfx_unowned_ptr.h"
#include "core/fxcrt/fx_system.h"
@@ -24,7 +25,8 @@ class CCodec_BmpModule {
class Delegate {
public:
virtual bool BmpInputImagePositionBuf(uint32_t rcd_pos) = 0;
- virtual void BmpReadScanline(int32_t row_num, uint8_t* row_buf) = 0;
+ virtual void BmpReadScanline(uint32_t row_num,
+ const std::vector<uint8_t>& row_buf) = 0;
};
CCodec_BmpModule();