diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-11-27 21:24:06 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-11-27 21:24:06 +0000 |
commit | 9ca9e297661b4a3ee9c25f68d3f9c8e0c270bda9 (patch) | |
tree | 8b28edc1ce78727da78138df2cdf6ea328e99ddd /core/fxcodec/codec/ccodec_gifmodule.h | |
parent | 9b93815edae6687d79d73c153c30d27e280c7571 (diff) | |
download | pdfium-9ca9e297661b4a3ee9c25f68d3f9c8e0c270bda9.tar.xz |
Convert CFX_GifContext::GetFrameNum to size_t
This CL removes the CollectionSize and updates call locations as needed.
Bug: pdfium:774
Change-Id: I813c500b3a17a194407ceb1304252b9b16fe1779
Reviewed-on: https://pdfium-review.googlesource.com/19590
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'core/fxcodec/codec/ccodec_gifmodule.h')
-rw-r--r-- | core/fxcodec/codec/ccodec_gifmodule.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/fxcodec/codec/ccodec_gifmodule.h b/core/fxcodec/codec/ccodec_gifmodule.h index 886c902bba..5ceff7bc4e 100644 --- a/core/fxcodec/codec/ccodec_gifmodule.h +++ b/core/fxcodec/codec/ccodec_gifmodule.h @@ -8,6 +8,7 @@ #define CORE_FXCODEC_CODEC_CCODEC_GIFMODULE_H_ #include <memory> +#include <utility> #include "core/fxcodec/gif/cfx_gif.h" #include "core/fxcrt/fx_coordinates.h" @@ -50,9 +51,9 @@ class CCodec_GifModule { void** pal_pp, int* bg_index, CFX_DIBAttribute* pAttribute); - CFX_GifDecodeStatus LoadFrameInfo(Context* context, int* frame_num); + std::pair<CFX_GifDecodeStatus, size_t> LoadFrameInfo(Context* context); CFX_GifDecodeStatus LoadFrame(Context* context, - int frame_num, + size_t frame_num, CFX_DIBAttribute* pAttribute); }; |