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

Issue 2572243002: Return unique_ptr from GetAlphaMask. (Closed)

Created:
4 years ago by Tom Sepez
Modified:
4 years ago
Reviewers:
dsinclair
CC:
pdfium-reviews_googlegroups.com
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Return unique_ptr from GetAlphaMask. Rename GetAlphaMask => CloneAlphaMask since it does more than get. Rename CopyAlphaMask => SetAlphaMask, as it copies IN, not OUT. ditto for CopyPalette => SetPalette. BUG= Review-Url: https://codereview.chromium.org/2572243002 Committed: https://pdfium.googlesource.com/pdfium/+/72c1bda4efaf0121e13b794cb886acd9806b6c89

Patch Set 1 #

Total comments: 6

Patch Set 2 : rebase, nits, typo. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -89 lines) Patch
M core/fpdfapi/page/cpdf_image.cpp View 1 2 chunks +4 lines, -3 lines 0 comments Download
M core/fpdfapi/render/cpdf_imagerenderer.cpp View 2 chunks +23 lines, -19 lines 0 comments Download
M core/fxge/dib/fx_dib_convert.cpp View 4 chunks +13 lines, -12 lines 0 comments Download
M core/fxge/dib/fx_dib_main.cpp View 1 8 chunks +49 lines, -50 lines 0 comments Download
M core/fxge/dib/fx_dib_transform.cpp View 1 chunk +1 line, -1 line 0 comments Download
M core/fxge/fx_dib.h View 1 2 chunks +8 lines, -4 lines 0 comments Download

Messages

Total messages: 16 (11 generated)
Tom Sepez
Dan, for review. https://codereview.chromium.org/2572243002/diff/1/core/fxge/dib/fx_dib_convert.cpp File core/fxge/dib/fx_dib_convert.cpp (right): https://codereview.chromium.org/2572243002/diff/1/core/fxge/dib/fx_dib_convert.cpp#newcode871 core/fxge/dib/fx_dib_convert.cpp:871: pAlphaMask = CloneAlphaMask().release(); battle for another ...
4 years ago (2016-12-14 21:31:43 UTC) #6
dsinclair
lgtm w/ nits. https://codereview.chromium.org/2572243002/diff/1/core/fxge/dib/fx_dib_main.cpp File core/fxge/dib/fx_dib_main.cpp (right): https://codereview.chromium.org/2572243002/diff/1/core/fxge/dib/fx_dib_main.cpp#newcode623 core/fxge/dib/fx_dib_main.cpp:623: uint8_t* dest_scan = (uint8_t*)pMask->GetScanline(row - rect.top); ...
4 years ago (2016-12-14 21:39:05 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2572243002/20001
4 years ago (2016-12-14 22:02:00 UTC) #12
Tom Sepez
https://codereview.chromium.org/2572243002/diff/1/core/fxge/dib/fx_dib_main.cpp File core/fxge/dib/fx_dib_main.cpp (right): https://codereview.chromium.org/2572243002/diff/1/core/fxge/dib/fx_dib_main.cpp#newcode623 core/fxge/dib/fx_dib_main.cpp:623: uint8_t* dest_scan = (uint8_t*)pMask->GetScanline(row - rect.top); On 2016/12/14 21:39:05, ...
4 years ago (2016-12-14 22:05:05 UTC) #13
commit-bot: I haz the power
4 years ago (2016-12-14 22:15:17 UTC) #16
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://pdfium.googlesource.com/pdfium/+/72c1bda4efaf0121e13b794cb886acd9806b...

Powered by Google App Engine
This is Rietveld 408576698