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

Issue 2303553002: Make CPDF_GeneralState have a CPDF_GeneralStateData (Closed)

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

Description

Make CPDF_GeneralState have a CPDF_GeneralStateData Remove a const cast along the way and propagate to callers. Committed: https://pdfium.googlesource.com/pdfium/+/bbee445c5a77dfbaea9041308f001c756e49c5fd

Patch Set 1 #

Patch Set 2 : out-of-line ctor #

Patch Set 3 : typo #

Patch Set 4 : Int vs. float return in GetStrokeAlpha #

Patch Set 5 : Try again #

Patch Set 6 : Rounding error #

Patch Set 7 : Alpha returned as float always #

Patch Set 8 : Remove some caller-side checks in favor of defaults #

Patch Set 9 : Move functions .cpp file #

Total comments: 2

Patch Set 10 : Fix windows build with explicit bool conversion #

Patch Set 11 : Rebase #

Total comments: 6

Patch Set 12 : rebse #

Patch Set 13 : Nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+331 lines, -174 lines) Patch
M core/fpdfapi/fpdf_page/cpdf_allstates.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +22 lines, -26 lines 0 comments Download
M core/fpdfapi/fpdf_page/cpdf_generalstate.cpp View 1 2 3 4 5 6 7 8 1 chunk +146 lines, -1 line 0 comments Download
M core/fpdfapi/fpdf_page/cpdf_pageobject.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M core/fpdfapi/fpdf_page/fpdf_page_parser.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M core/fpdfapi/fpdf_page/fpdf_page_parser_old.cpp View 1 chunk +5 lines, -6 lines 0 comments Download
M core/fpdfapi/fpdf_page/include/cpdf_generalstate.h View 1 2 3 4 5 6 7 8 1 chunk +58 lines, -13 lines 0 comments Download
M core/fpdfapi/fpdf_page/include/cpdf_generalstatedata.h View 1 2 3 4 5 6 7 1 chunk +5 lines, -5 lines 0 comments Download
M core/fpdfapi/fpdf_render/fpdf_render.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 14 chunks +40 lines, -54 lines 0 comments Download
M core/fpdfapi/fpdf_render/fpdf_render_image.cpp View 1 2 3 4 5 6 7 4 chunks +21 lines, -22 lines 0 comments Download
M core/fpdfapi/fpdf_render/fpdf_render_pattern.cpp View 1 2 3 4 5 6 4 chunks +7 lines, -5 lines 0 comments Download
M core/fpdfapi/fpdf_render/fpdf_render_text.cpp View 1 2 3 4 5 6 7 8 9 10 3 chunks +4 lines, -9 lines 0 comments Download
M core/fpdfapi/fpdf_render/render_int.h View 1 2 3 4 5 6 7 8 9 10 7 chunks +17 lines, -20 lines 0 comments Download
M fpdfsdk/fpdfeditimg.cpp View 2 chunks +0 lines, -2 lines 0 comments Download
M fpdfsdk/fpdfeditpage.cpp View 1 2 3 4 5 6 7 1 chunk +4 lines, -8 lines 0 comments Download

Messages

Total messages: 57 (48 generated)
Tom Sepez
Dan, for review (I sent the follow-up before landing this somehow).
4 years, 3 months ago (2016-09-01 19:27:30 UTC) #37
dsinclair
https://codereview.chromium.org/2303553002/diff/160001/core/fpdfapi/fpdf_render/fpdf_render_pattern.cpp File core/fpdfapi/fpdf_render/fpdf_render_pattern.cpp (right): https://codereview.chromium.org/2303553002/diff/160001/core/fpdfapi/fpdf_render/fpdf_render_pattern.cpp#newcode965 core/fpdfapi/fpdf_render/fpdf_render_pattern.cpp:965: FXSYS_round(255 * (bStroke ? pPageObj->m_GeneralState.GetStrokeAlpha() Why does this and ...
4 years, 3 months ago (2016-09-01 19:35:52 UTC) #38
Tom Sepez
https://codereview.chromium.org/2303553002/diff/160001/core/fpdfapi/fpdf_render/fpdf_render_pattern.cpp File core/fpdfapi/fpdf_render/fpdf_render_pattern.cpp (right): https://codereview.chromium.org/2303553002/diff/160001/core/fpdfapi/fpdf_render/fpdf_render_pattern.cpp#newcode965 core/fpdfapi/fpdf_render/fpdf_render_pattern.cpp:965: FXSYS_round(255 * (bStroke ? pPageObj->m_GeneralState.GetStrokeAlpha() On 2016/09/01 19:35:52, dsinclair ...
4 years, 3 months ago (2016-09-01 20:01:48 UTC) #39
Tom Sepez
Lei, since Dan is gone on Fridays ...
4 years, 3 months ago (2016-09-02 20:22:14 UTC) #49
Lei Zhang
On 2016/09/02 20:22:14, Tom Sepez wrote: > Lei, since Dan is gone on Fridays ...
4 years, 3 months ago (2016-09-02 21:44:56 UTC) #50
Lei Zhang
lgtm https://codereview.chromium.org/2303553002/diff/200001/core/fpdfapi/fpdf_page/cpdf_allstates.cpp File core/fpdfapi/fpdf_page/cpdf_allstates.cpp (right): https://codereview.chromium.org/2303553002/diff/200001/core/fpdfapi/fpdf_page/cpdf_allstates.cpp#newcode120 core/fpdfapi/fpdf_page/cpdf_allstates.cpp:120: FXSYS_memcpy(m_GeneralState.GetMutableSMaskMatrix(), Do you know why |m_SMaskMatrix| isn't just ...
4 years, 3 months ago (2016-09-02 22:00:43 UTC) #51
Tom Sepez
https://codereview.chromium.org/2303553002/diff/200001/core/fpdfapi/fpdf_page/cpdf_allstates.cpp File core/fpdfapi/fpdf_page/cpdf_allstates.cpp (right): https://codereview.chromium.org/2303553002/diff/200001/core/fpdfapi/fpdf_page/cpdf_allstates.cpp#newcode120 core/fpdfapi/fpdf_page/cpdf_allstates.cpp:120: FXSYS_memcpy(m_GeneralState.GetMutableSMaskMatrix(), On 2016/09/02 22:00:43, Lei Zhang wrote: > Do ...
4 years, 3 months ago (2016-09-02 22:09:57 UTC) #52
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/2303553002/240001
4 years, 3 months ago (2016-09-02 22:11:05 UTC) #55
commit-bot: I haz the power
4 years, 3 months ago (2016-09-02 22:22:04 UTC) #57
Message was sent while issue was closed.
Committed patchset #13 (id:240001) as
https://pdfium.googlesource.com/pdfium/+/bbee445c5a77dfbaea9041308f001c756e49...

Powered by Google App Engine
This is Rietveld 408576698