Clean up some image decoder classes:
authorLei Zhang <thestig@chromium.org>
Thu, 1 Oct 2015 20:49:28 +0000 (13:49 -0700)
committerLei Zhang <thestig@chromium.org>
Thu, 1 Oct 2015 20:49:28 +0000 (13:49 -0700)
commit022da0014faa103901ec107ed6a33e5ab00c7931
tree3f117f805fbff77cd11cf4bde5aafca3e22eeee9
parentce37d7347f1ab4c9fc1f48a137628da641bb4f14
Clean up some image decoder classes:

- Use std::vector<uint8_t> instead of raw uint8_t*
- Make ICodec_ScanlineDecoder::GetScanline() return const uint8_t*
- Add FxFreeDeleter, use it in CCodec_ImageDataCache.
- Make CCodec_ImageDataCache encapsulate its data members.

R=tsepez@chromium.org

Review URL: https://codereview.chromium.org/1361053002 .
core/include/fxcodec/fx_codec.h
core/include/fxcrt/fx_basic.h
core/src/fpdfapi/fpdf_page/fpdf_page_parser_old.cpp
core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp
core/src/fxcodec/codec/codec_int.h
core/src/fxcodec/codec/fx_codec.cpp
core/src/fxcodec/codec/fx_codec_jpx_opj.cpp