diff options
author | Tom Sepez <tsepez@chromium.org> | 2017-05-31 16:29:29 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-05-31 23:43:31 +0000 |
commit | db9faec3c8fb3ced3d8340b2b6ae252b8f40d135 (patch) | |
tree | e345adf7b949322e462c48274dd256410a237f51 /core/fxcodec/codec/ccodec_progressivedecoder.h | |
parent | fc04f41200e4ba4f47f52f188708547e8a1bee6d (diff) | |
download | pdfium-db9faec3c8fb3ced3d8340b2b6ae252b8f40d135.tar.xz |
Put all CCodec_PngModule state into its context.
Rename FXPNG_Context and use unowned ptr. Clean up context
in its dtor. Then create and destroy using |new|.
Change-Id: I7b66e6d0da50a16d3b8d5108ffd931bb01145892
Reviewed-on: https://pdfium-review.googlesource.com/6152
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fxcodec/codec/ccodec_progressivedecoder.h')
-rw-r--r-- | core/fxcodec/codec/ccodec_progressivedecoder.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fxcodec/codec/ccodec_progressivedecoder.h b/core/fxcodec/codec/ccodec_progressivedecoder.h index f9a67ccee3..5ebb32397d 100644 --- a/core/fxcodec/codec/ccodec_progressivedecoder.h +++ b/core/fxcodec/codec/ccodec_progressivedecoder.h @@ -132,7 +132,7 @@ class CCodec_ProgressiveDecoder : public CCodec_BmpModule::Delegate, // TODO(tsepez): All these contexts probably should be unique_ptrs. FXJPEG_Context* m_pJpegContext; - FXPNG_Context* m_pPngContext; + CFX_UnownedPtr<CCodec_PngModule::Context> m_pPngContext; std::unique_ptr<CGifContext> m_pGifContext; CCodec_BmpModule::Context* m_pBmpContext; CFX_UnownedPtr<CCodec_TiffContext> m_pTiffContext; |