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/gif/cfx_gifcontext.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/gif/cfx_gifcontext.h')
-rw-r--r-- | core/fxcodec/gif/cfx_gifcontext.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fxcodec/gif/cfx_gifcontext.h b/core/fxcodec/gif/cfx_gifcontext.h index e0c5900f93..3a367bd361 100644 --- a/core/fxcodec/gif/cfx_gifcontext.h +++ b/core/fxcodec/gif/cfx_gifcontext.h @@ -41,7 +41,7 @@ class CFX_GifContext : public CCodec_GifModule::Context { CFX_GifDecodeStatus LoadFrame(int32_t frame_num); void SetInputBuffer(uint8_t* src_buf, uint32_t src_size); uint32_t GetAvailInput(uint8_t** avail_buf) const; - int32_t GetFrameNum() const; + size_t GetFrameNum() const { return images_.size(); } UnownedPtr<CCodec_GifModule> gif_module_; UnownedPtr<CCodec_GifModule::Delegate> delegate_; |