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

Issue 2302683002: Make StateData private (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_GeneralStateData private. All interaction goes through the CPDF_GeneralState, which manages the underlying storage transparently to the callers. Make StateData use a real string and a real matrix rather than C-style arrays. Committed: https://pdfium.googlesource.com/pdfium/+/e106b50129d5b8ce50228c67d3b0170bc46c4b2e

Patch Set 1 #

Total comments: 8

Patch Set 2 : Rebuild patch #

Patch Set 3 : Use bytestring, real constructors #

Patch Set 4 : rebase #

Patch Set 5 : Make m_SMaskMatrix a real matrix #

Patch Set 6 : missed one #

Total comments: 2

Patch Set 7 : Alphabetical order #

Unified diffs Side-by-side diffs Delta from patch set Stats (+165 lines, -128 lines) Patch
M BUILD.gn View 1 2 3 4 5 2 chunks +0 lines, -2 lines 0 comments Download
M core/fpdfapi/fpdf_page/cpdf_allstates.cpp View 1 2 3 4 2 chunks +3 lines, -6 lines 0 comments Download
M core/fpdfapi/fpdf_page/cpdf_generalstate.cpp View 1 2 3 4 12 chunks +123 lines, -16 lines 0 comments Download
D core/fpdfapi/fpdf_page/cpdf_generalstatedata.cpp View 1 chunk +0 lines, -95 lines 0 comments Download
M core/fpdfapi/fpdf_page/include/cpdf_generalstate.h View 1 2 3 4 5 6 3 chunks +38 lines, -5 lines 0 comments Download
M core/fpdfapi/fpdf_render/fpdf_render.cpp View 1 2 3 4 5 1 chunk +1 line, -3 lines 0 comments Download
M fpdfsdk/fpdfeditpage.cpp View 1 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 25 (17 generated)
Tom Sepez
Dan, how about them apples?
4 years, 3 months ago (2016-09-01 00:45:39 UTC) #3
dsinclair
lgtm w/ nits https://codereview.chromium.org/2302683002/diff/1/core/fpdfapi/fpdf_page/cpdf_generalstate.cpp File core/fpdfapi/fpdf_page/cpdf_generalstate.cpp (right): https://codereview.chromium.org/2302683002/diff/1/core/fpdfapi/fpdf_page/cpdf_generalstate.cpp#newcode214 core/fpdfapi/fpdf_page/cpdf_generalstate.cpp:214: FXSYS_strcpy((FX_CHAR*)m_BlendMode, "Normal"); static_cast https://codereview.chromium.org/2302683002/diff/1/core/fpdfapi/fpdf_page/cpdf_generalstate.cpp#newcode224 core/fpdfapi/fpdf_page/cpdf_generalstate.cpp:224: if ...
4 years, 3 months ago (2016-09-01 14:17:09 UTC) #4
Tom Sepez
https://codereview.chromium.org/2302683002/diff/1/core/fpdfapi/fpdf_page/cpdf_generalstate.cpp File core/fpdfapi/fpdf_page/cpdf_generalstate.cpp (right): https://codereview.chromium.org/2302683002/diff/1/core/fpdfapi/fpdf_page/cpdf_generalstate.cpp#newcode214 core/fpdfapi/fpdf_page/cpdf_generalstate.cpp:214: FXSYS_strcpy((FX_CHAR*)m_BlendMode, "Normal"); On 2016/09/01 14:17:09, dsinclair wrote: > static_cast ...
4 years, 3 months ago (2016-09-01 22:26:31 UTC) #9
Tom Sepez
Lei, the followup
4 years, 3 months ago (2016-09-02 22:41:42 UTC) #12
Lei Zhang
lgtm https://codereview.chromium.org/2302683002/diff/100001/core/fpdfapi/fpdf_page/include/cpdf_generalstate.h File core/fpdfapi/fpdf_page/include/cpdf_generalstate.h (right): https://codereview.chromium.org/2302683002/diff/100001/core/fpdfapi/fpdf_page/include/cpdf_generalstate.h#newcode15 core/fpdfapi/fpdf_page/include/cpdf_generalstate.h:15: class CPDF_Object; alphabetical order
4 years, 3 months ago (2016-09-02 23:36:58 UTC) #19
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/2302683002/120001
4 years, 3 months ago (2016-09-02 23:38:55 UTC) #22
Tom Sepez
https://codereview.chromium.org/2302683002/diff/100001/core/fpdfapi/fpdf_page/include/cpdf_generalstate.h File core/fpdfapi/fpdf_page/include/cpdf_generalstate.h (right): https://codereview.chromium.org/2302683002/diff/100001/core/fpdfapi/fpdf_page/include/cpdf_generalstate.h#newcode15 core/fpdfapi/fpdf_page/include/cpdf_generalstate.h:15: class CPDF_Object; On 2016/09/02 23:36:58, Lei Zhang wrote: > ...
4 years, 3 months ago (2016-09-02 23:39:15 UTC) #23
commit-bot: I haz the power
4 years, 3 months ago (2016-09-02 23:53:13 UTC) #25
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://pdfium.googlesource.com/pdfium/+/e106b50129d5b8ce50228c67d3b0170bc46c...

Powered by Google App Engine
This is Rietveld 408576698