Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(796)

Issue 1876023003: Remove ICodec_* Interfaces. (Closed)

Created:
4 years, 8 months ago by dsinclair
Modified:
4 years, 8 months ago
Reviewers:
Tom Sepez, Lei Zhang
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Remove ICodec_* Interfaces. All of the ICodec_* interfaces had a single implementation. This CL removes the interfaces and uses the concrete classes in their place. BUG=pdfium:468 Committed: https://pdfium.googlesource.com/pdfium/+/d55e11eeb8ebf1e226a1166f395ba77248ce84c3

Patch Set 1 #

Total comments: 33

Patch Set 2 : #

Total comments: 4

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1173 lines, -1507 lines) Patch
M BUILD.gn View 1 2 2 chunks +13 lines, -1 line 0 comments Download
M core/fpdfapi/fpdf_basic_module.cpp View 1 1 chunk +19 lines, -12 lines 0 comments Download
M core/fpdfapi/fpdf_page/cpdf_colorspace.cpp View 1 1 chunk +6 lines, -4 lines 0 comments Download
M core/fpdfapi/fpdf_page/fpdf_page_parser_old.cpp View 4 chunks +4 lines, -4 lines 0 comments Download
M core/fpdfapi/fpdf_parser/fpdf_parser_decode.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M core/fpdfapi/fpdf_render/fpdf_render_image.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M core/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp View 7 chunks +8 lines, -8 lines 0 comments Download
M core/fpdfapi/fpdf_render/render_int.h View 2 chunks +2 lines, -2 lines 0 comments Download
M core/fpdfapi/include/cpdf_modulemgr.h View 2 chunks +12 lines, -12 lines 0 comments Download
A core/fxcodec/codec/ccodec_basicmodule.h View 1 chunk +32 lines, -0 lines 0 comments Download
A core/fxcodec/codec/ccodec_bmpmodule.h View 1 1 chunk +46 lines, -0 lines 0 comments Download
A core/fxcodec/codec/ccodec_faxmodule.h View 1 chunk +34 lines, -0 lines 0 comments Download
A core/fxcodec/codec/ccodec_flatemodule.h View 1 chunk +51 lines, -0 lines 0 comments Download
A core/fxcodec/codec/ccodec_gifmodule.h View 1 1 chunk +63 lines, -0 lines 0 comments Download
A core/fxcodec/codec/ccodec_iccmodule.h View 1 1 chunk +95 lines, -0 lines 0 comments Download
A core/fxcodec/codec/ccodec_jbig2module.h View 1 1 chunk +34 lines, -0 lines 0 comments Download
A core/fxcodec/codec/ccodec_jpegmodule.h View 1 1 chunk +68 lines, -0 lines 0 comments Download
A core/fxcodec/codec/ccodec_jpxmodule.h View 1 chunk +36 lines, -0 lines 0 comments Download
A core/fxcodec/codec/ccodec_pngmodule.h View 1 1 chunk +42 lines, -0 lines 0 comments Download
A core/fxcodec/codec/ccodec_scanlinedecoder.h View 1 chunk +46 lines, -0 lines 0 comments Download
A core/fxcodec/codec/ccodec_tiffmodule.h View 1 1 chunk +35 lines, -0 lines 0 comments Download
M core/fxcodec/codec/codec_int.h View 1 chunk +1 line, -353 lines 0 comments Download
M core/fxcodec/codec/fx_codec.cpp View 1 2 chunks +8 lines, -5 lines 0 comments Download
M core/fxcodec/codec/fx_codec_bmp.cpp View 1 2 3 chunks +39 lines, -40 lines 0 comments Download
M core/fxcodec/codec/fx_codec_fax.cpp View 1 chunk +1 line, -1 line 0 comments Download
M core/fxcodec/codec/fx_codec_flate.cpp View 1 chunk +1 line, -1 line 0 comments Download
M core/fxcodec/codec/fx_codec_gif.cpp View 1 2 3 chunks +51 lines, -52 lines 0 comments Download
M core/fxcodec/codec/fx_codec_icc.cpp View 4 chunks +22 lines, -22 lines 0 comments Download
M core/fxcodec/codec/fx_codec_jbig.cpp View 1 chunk +20 lines, -0 lines 0 comments Download
M core/fxcodec/codec/fx_codec_jpeg.cpp View 1 3 chunks +45 lines, -47 lines 0 comments Download
M core/fxcodec/codec/fx_codec_png.cpp View 1 2 chunks +26 lines, -24 lines 0 comments Download
D core/fxcodec/codec/fx_codec_progress.h View 1 chunk +0 lines, -221 lines 0 comments Download
M core/fxcodec/codec/fx_codec_progress.cpp View 1 22 chunks +40 lines, -29 lines 0 comments Download
M core/fxcodec/codec/fx_codec_tiff.cpp View 1 1 chunk +16 lines, -14 lines 0 comments Download
A + core/fxcodec/codec/include/ccodec_progressivedecoder.h View 1 2 chunks +141 lines, -132 lines 0 comments Download
M core/fxcodec/include/fx_codec.h View 1 2 chunks +39 lines, -466 lines 0 comments Download
M core/fxge/agg/fx_agg_driver.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M core/fxge/dib/fx_dib_composite.cpp View 1 20 chunks +20 lines, -22 lines 0 comments Download
M core/fxge/dib/fx_dib_convert.cpp View 11 chunks +11 lines, -11 lines 0 comments Download
M core/fxge/dib/fx_dib_main.cpp View 1 chunk +1 line, -1 line 0 comments Download
M core/fxge/ge/fx_ge_ps.cpp View 1 chunk +1 line, -1 line 0 comments Download
M core/fxge/ge/fx_ge_text.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pdfium.gyp View 1 2 2 chunks +13 lines, -1 line 0 comments Download
M xfa/fxbarcode/BC_BufferedImageLuminanceSource.cpp View 1 7 chunks +21 lines, -14 lines 0 comments Download
M xfa/fxbarcode/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M xfa/fxfa/app/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M xfa/fxfa/app/xfa_ffwidget.cpp View 1 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 12 (4 generated)
dsinclair
PTAL.
4 years, 8 months ago (2016-04-11 16:23:19 UTC) #2
Tom Sepez
https://codereview.chromium.org/1876023003/diff/1/core/fpdfapi/fpdf_basic_module.cpp File core/fpdfapi/fpdf_basic_module.cpp (right): https://codereview.chromium.org/1876023003/diff/1/core/fpdfapi/fpdf_basic_module.cpp#newcode48 core/fpdfapi/fpdf_basic_module.cpp:48: return m_pCodecModule ? m_pCodecModule->GetFaxModule() : NULL; nits: nullptrs. https://codereview.chromium.org/1876023003/diff/1/core/fpdfapi/fpdf_page/cpdf_colorspace.cpp ...
4 years, 8 months ago (2016-04-11 17:16:21 UTC) #3
dsinclair
https://codereview.chromium.org/1876023003/diff/1/core/fpdfapi/fpdf_basic_module.cpp File core/fpdfapi/fpdf_basic_module.cpp (right): https://codereview.chromium.org/1876023003/diff/1/core/fpdfapi/fpdf_basic_module.cpp#newcode48 core/fpdfapi/fpdf_basic_module.cpp:48: return m_pCodecModule ? m_pCodecModule->GetFaxModule() : NULL; On 2016/04/11 17:16:20, ...
4 years, 8 months ago (2016-04-11 20:40:40 UTC) #4
dsinclair
On 2016/04/11 20:40:40, dsinclair wrote: > https://codereview.chromium.org/1876023003/diff/1/core/fpdfapi/fpdf_basic_module.cpp > File core/fpdfapi/fpdf_basic_module.cpp (right): > > https://codereview.chromium.org/1876023003/diff/1/core/fpdfapi/fpdf_basic_module.cpp#newcode48 > ...
4 years, 8 months ago (2016-04-12 13:02:34 UTC) #5
Tom Sepez
lgtm https://codereview.chromium.org/1876023003/diff/1/core/fxcodec/codec/ccodec_pngmodule.h File core/fxcodec/codec/ccodec_pngmodule.h (right): https://codereview.chromium.org/1876023003/diff/1/core/fxcodec/codec/ccodec_pngmodule.h#newcode17 core/fxcodec/codec/ccodec_pngmodule.h:17: CCodec_PngModule() { FXSYS_memset(m_szLastError, '\0', PNG_ERROR_SIZE); } On 2016/04/11 ...
4 years, 8 months ago (2016-04-12 16:58:56 UTC) #6
dsinclair
https://codereview.chromium.org/1876023003/diff/20001/core/fxcodec/codec/fx_codec_bmp.cpp File core/fxcodec/codec/fx_codec_bmp.cpp (right): https://codereview.chromium.org/1876023003/diff/20001/core/fxcodec/codec/fx_codec_bmp.cpp#newcode47 core/fxcodec/codec/fx_codec_bmp.cpp:47: FXBMP_Context* p = (FXBMP_Context*)FX_Alloc(uint8_t, sizeof(FXBMP_Context)); On 2016/04/12 16:58:55, Tom ...
4 years, 8 months ago (2016-04-12 17:47:55 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1876023003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1876023003/40001
4 years, 8 months ago (2016-04-12 17:48:39 UTC) #10
commit-bot: I haz the power
4 years, 8 months ago (2016-04-12 18:21:26 UTC) #12
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://pdfium.googlesource.com/pdfium/+/d55e11eeb8ebf1e226a1166f395ba77248ce...

Powered by Google App Engine
This is Rietveld 408576698