summaryrefslogtreecommitdiff
path: root/core/fxcodec/codec/ccodec_gifmodule.h
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-04-27 21:30:57 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-04-27 21:30:57 +0000
commit74c8b8e6e561b4ff1059441d70f7f1476494dfbb (patch)
tree95ef6ba2458a8c21a71e63841a91a178274495cf /core/fxcodec/codec/ccodec_gifmodule.h
parent82f4f7f01bcac4acae86e179a57ae78cc5691a50 (diff)
downloadpdfium-74c8b8e6e561b4ff1059441d70f7f1476494dfbb.tar.xz
Replace void* with CFX_GifPalette* in fxcodec
The type is known where we need it, and we avoid some dubious casts in the process. Also avoid clumsy indexing and use the members directly in computations. Bug: pdfium:243 Change-Id: I1e061465fd0f9045cf5b82067204f26ac7df53f0 Reviewed-on: https://pdfium-review.googlesource.com/31651 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fxcodec/codec/ccodec_gifmodule.h')
-rw-r--r--core/fxcodec/codec/ccodec_gifmodule.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/fxcodec/codec/ccodec_gifmodule.h b/core/fxcodec/codec/ccodec_gifmodule.h
index 5ceff7bc4e..e7b250fe27 100644
--- a/core/fxcodec/codec/ccodec_gifmodule.h
+++ b/core/fxcodec/codec/ccodec_gifmodule.h
@@ -29,7 +29,7 @@ class CCodec_GifModule {
virtual bool GifInputRecordPositionBuf(uint32_t rcd_pos,
const FX_RECT& img_rc,
int32_t pal_num,
- void* pal_ptr,
+ CFX_GifPalette* pal_ptr,
int32_t delay_time,
bool user_input,
int32_t trans_index,
@@ -48,7 +48,7 @@ class CCodec_GifModule {
int* width,
int* height,
int* pal_num,
- void** pal_pp,
+ CFX_GifPalette** pal_pp,
int* bg_index,
CFX_DIBAttribute* pAttribute);
std::pair<CFX_GifDecodeStatus, size_t> LoadFrameInfo(Context* context);