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

Issue 1310603006: Cleanup dead code in CPDF_DIBSource::LoadJpxBitmap() and friends. (Closed)

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

Description

Cleanup dead code in CPDF_DIBSource::LoadJpxBitmap() and friends. R=tsepez@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/097297325e0d3d00556d67885547750a2e9d4b32

Patch Set 1 : no pass by ref, use override, use unique_ptr, remove dead param #

Total comments: 7

Patch Set 2 : remove redundent components params / variables #

Total comments: 3

Patch Set 3 : m_pColorSpace never starts off NULL #

Patch Set 4 : address comments #

Patch Set 5 : s/context/decoder/ #

Patch Set 6 : Revert bad m_pColorSpace logic #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -101 lines) Patch
M core/include/fxcodec/fx_codec.h View 1 2 3 4 5 2 chunks +12 lines, -11 lines 0 comments Download
M core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp View 1 2 3 4 5 3 chunks +25 lines, -35 lines 0 comments Download
M core/src/fxcodec/codec/codec_int.h View 1 2 3 4 5 1 chunk +13 lines, -12 lines 0 comments Download
M core/src/fxcodec/codec/fx_codec_jpx_opj.cpp View 1 2 3 4 5 4 chunks +42 lines, -43 lines 2 comments Download

Messages

Total messages: 14 (1 generated)
Lei Zhang
Please look at patch set 1, and then the diff between patch sets to see ...
5 years, 3 months ago (2015-09-01 21:31:50 UTC) #2
Tom Sepez
PS1 LG with nits. Stay tuned. https://codereview.chromium.org/1310603006/diff/1/core/src/fxcodec/codec/fx_codec_jpx_opj.cpp File core/src/fxcodec/codec/fx_codec_jpx_opj.cpp (right): https://codereview.chromium.org/1310603006/diff/1/core/src/fxcodec/codec/fx_codec_jpx_opj.cpp#newcode733 core/src/fxcodec/codec/fx_codec_jpx_opj.cpp:733: *output_nComps = *codestream_nComps ...
5 years, 3 months ago (2015-09-01 21:38:48 UTC) #3
Tom Sepez
PS2 LG with nits minus one nit. https://codereview.chromium.org/1310603006/diff/20001/core/src/fxcodec/codec/fx_codec_jpx_opj.cpp File core/src/fxcodec/codec/fx_codec_jpx_opj.cpp (right): https://codereview.chromium.org/1310603006/diff/20001/core/src/fxcodec/codec/fx_codec_jpx_opj.cpp#newcode729 core/src/fxcodec/codec/fx_codec_jpx_opj.cpp:729: *components = ...
5 years, 3 months ago (2015-09-01 21:43:37 UTC) #4
Lei Zhang
https://codereview.chromium.org/1310603006/diff/1/core/src/fxcodec/codec/fx_codec_jpx_opj.cpp File core/src/fxcodec/codec/fx_codec_jpx_opj.cpp (right): https://codereview.chromium.org/1310603006/diff/1/core/src/fxcodec/codec/fx_codec_jpx_opj.cpp#newcode821 core/src/fxcodec/codec/fx_codec_jpx_opj.cpp:821: void initialize_transition_table(); On 2015/09/01 21:38:48, Tom Sepez wrote: > ...
5 years, 3 months ago (2015-09-01 22:06:27 UTC) #5
Lei Zhang
uploaded patch set 4 & 5.
5 years, 3 months ago (2015-09-01 22:16:13 UTC) #6
Tom Sepez
Not following the logic in PS3: fpdf_render_cache.cpp:253 CPDF_DIBSource* pSrc = new CPDF_DIBSource; then immediately call ...
5 years, 3 months ago (2015-09-01 22:17:45 UTC) #7
Lei Zhang
On 2015/09/01 22:17:45, Tom Sepez wrote: > Not following the logic in PS3: > > ...
5 years, 3 months ago (2015-09-01 22:23:44 UTC) #8
Tom Sepez
On 2015/09/01 22:23:44, Lei Zhang wrote: > On 2015/09/01 22:17:45, Tom Sepez wrote: > > ...
5 years, 3 months ago (2015-09-01 22:25:12 UTC) #9
Lei Zhang
PTAL at the patchset 2 -> 6 diff. That one makes the most sense. https://codereview.chromium.org/1310603006/diff/100001/core/src/fxcodec/codec/fx_codec_jpx_opj.cpp ...
5 years, 3 months ago (2015-09-01 22:32:07 UTC) #10
Tom Sepez
lgtm++
5 years, 3 months ago (2015-09-01 22:38:28 UTC) #11
Lei Zhang
Committed patchset #6 (id:100001) manually as 097297325e0d3d00556d67885547750a2e9d4b32 (presubmit successful).
5 years, 3 months ago (2015-09-01 22:42:04 UTC) #12
Tom Sepez
https://codereview.chromium.org/1310603006/diff/100001/core/src/fxcodec/codec/fx_codec_jpx_opj.cpp File core/src/fxcodec/codec/fx_codec_jpx_opj.cpp (right): https://codereview.chromium.org/1310603006/diff/100001/core/src/fxcodec/codec/fx_codec_jpx_opj.cpp#newcode627 core/src/fxcodec/codec/fx_codec_jpx_opj.cpp:627: opj_image_t* image; A truly OCD individual would call these ...
5 years, 3 months ago (2015-09-01 23:21:47 UTC) #13
Lei Zhang
5 years, 3 months ago (2015-09-01 23:23:23 UTC) #14
Message was sent while issue was closed.
On 2015/09/01 23:21:47, Tom Sepez wrote:
>
https://codereview.chromium.org/1310603006/diff/100001/core/src/fxcodec/codec...
> File core/src/fxcodec/codec/fx_codec_jpx_opj.cpp (right):
> 
>
https://codereview.chromium.org/1310603006/diff/100001/core/src/fxcodec/codec...
> core/src/fxcodec/codec/fx_codec_jpx_opj.cpp:627: opj_image_t* image;
> A truly OCD individual would call these m_pImage, m_pCodec, m_pStream and
> m_bUseColorSpace to match the naming conventions in play here.

Oh, I intend to.

Powered by Google App Engine
This is Rietveld 408576698