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

Issue 2223213002: Refactor fx_ge part 3 (Closed)

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

Description

Move CFX_RenderDevice, CFX_FxgeDevice, and CFX_GraphStateData into their own files. This is the third CL to separate fx_ge into classes, one per file. All fx_ge.h includes had to be replaced with new includes The method definitions for CFX_FxgeDevice were not moved to a single file. These methods are defined in two folders different from fxge/ge, so they were left untouched for now. Committed: https://pdfium.googlesource.com/pdfium/+/9ada2d83cbb629f286936ebc7a208a61164f873b

Patch Set 1 #

Total comments: 14

Patch Set 2 : Added includes, deleted fx_ge.h #

Patch Set 3 : Redoing nit fixes from original fx_ge_device after rebase #

Patch Set 4 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1274 lines, -1601 lines) Patch
M BUILD.gn View 1 2 3 1 chunk +5 lines, -3 lines 0 comments Download
M core/fpdfapi/cpdf_pagerendercontext.cpp View 1 chunk +1 line, -1 line 0 comments Download
M core/fpdfapi/fpdf_font/cpdf_type1font.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M core/fpdfapi/fpdf_font/fpdf_font_cid.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M core/fpdfapi/fpdf_font/ttgsubtable.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M core/fpdfapi/fpdf_page/cpdf_allstates.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M core/fpdfapi/fpdf_page/cpdf_graphstate.h View 1 chunk +1 line, -1 line 0 comments Download
M core/fpdfapi/fpdf_page/fpdf_page_parser.cpp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M core/fpdfapi/fpdf_page/fpdf_page_parser_old.cpp View 1 chunk +2 lines, -0 lines 0 comments Download
M core/fpdfapi/fpdf_page/include/cpdf_path.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M core/fpdfapi/fpdf_page/pageint.h View 1 chunk +1 line, -1 line 0 comments Download
M core/fpdfapi/fpdf_render/fpdf_render.cpp View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M core/fpdfapi/fpdf_render/fpdf_render_cache.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M core/fpdfapi/fpdf_render/fpdf_render_image.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M core/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M core/fpdfapi/fpdf_render/fpdf_render_pattern.cpp View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M core/fpdfapi/fpdf_render/fpdf_render_text.cpp View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M core/fpdfapi/fpdf_render/render_int.h View 1 chunk +2 lines, -0 lines 0 comments Download
M core/fpdfdoc/cpdf_annot.cpp View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M core/fpdfdoc/cpdf_annotlist.cpp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M core/fpdfdoc/cpdf_formcontrol.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M core/fxge/agg/fx_agg_driver.h View 1 chunk +1 line, -0 lines 0 comments Download
M core/fxge/agg/fx_agg_driver.cpp View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M core/fxge/android/fx_android_imp.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M core/fxge/apple/apple_int.h View 1 chunk +2 lines, -0 lines 0 comments Download
M core/fxge/apple/cfx_quartzdevice.h View 1 chunk +1 line, -1 line 0 comments Download
M core/fxge/apple/fx_apple_platform.cpp View 2 chunks +1 line, -1 line 0 comments Download
M core/fxge/apple/fx_mac_imp.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M core/fxge/apple/fx_quartz_device.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M core/fxge/dib/fx_dib_composite.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M core/fxge/dib/fx_dib_convert.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M core/fxge/dib/fx_dib_engine.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M core/fxge/dib/fx_dib_main.cpp View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
A + core/fxge/ge/cfx_graphstatedata.cpp View 2 chunks +5 lines, -4 lines 0 comments Download
M core/fxge/ge/cfx_pathdata.cpp View 1 chunk +0 lines, -1 line 0 comments Download
A core/fxge/ge/cfx_renderdevice.cpp View 1 2 3 1 chunk +1072 lines, -0 lines 0 comments Download
D core/fxge/ge/fx_ge_device.cpp View 1 2 3 1 chunk +0 lines, -504 lines 0 comments Download
M core/fxge/ge/fx_ge_fontmap.cpp View 1 chunk +0 lines, -1 line 0 comments Download
D core/fxge/ge/fx_ge_path.cpp View 1 chunk +0 lines, -51 lines 0 comments Download
M core/fxge/ge/fx_ge_text.cpp View 3 chunks +0 lines, -588 lines 0 comments Download
M core/fxge/ifx_renderdevicedriver.cpp View 1 chunk +1 line, -0 lines 0 comments Download
A core/fxge/include/cfx_fxgedevice.h View 1 chunk +39 lines, -0 lines 0 comments Download
A core/fxge/include/cfx_graphstatedata.h View 1 chunk +38 lines, -0 lines 0 comments Download
M core/fxge/include/cfx_pathdata.h View 1 chunk +1 line, -0 lines 0 comments Download
A + core/fxge/include/cfx_renderdevice.h View 1 2 chunks +6 lines, -60 lines 0 comments Download
M core/fxge/include/fx_ge.h View 1 1 chunk +0 lines, -334 lines 0 comments Download
M core/fxge/skia/fx_skia_device.h View 1 chunk +1 line, -0 lines 0 comments Download
M core/fxge/skia/fx_skia_device.cpp View 1 chunk +3 lines, -0 lines 0 comments Download
M core/fxge/skia/fx_skia_device_unittest.cpp View 1 chunk +3 lines, -1 line 0 comments Download
M core/fxge/win32/fx_win32_device.cpp View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M core/fxge/win32/fx_win32_dib.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M core/fxge/win32/fx_win32_dwrite.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M core/fxge/win32/fx_win32_gdipext.cpp View 1 2 chunks +2 lines, -1 line 0 comments Download
M core/fxge/win32/fx_win32_print.cpp View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M core/fxge/win32/win32_int.h View 1 chunk +2 lines, -0 lines 0 comments Download
M fpdfsdk/formfiller/cffl_formfiller.cpp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M fpdfsdk/formfiller/cffl_iformfiller.cpp View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M fpdfsdk/fpdf_progressive.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M fpdfsdk/fpdf_sysfontinfo.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M fpdfsdk/fpdfformfill.cpp View 1 chunk +1 line, -1 line 0 comments Download
M fpdfsdk/fpdfview.cpp View 1 chunk +1 line, -1 line 0 comments Download
M fpdfsdk/fsdk_annothandler.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M fpdfsdk/fsdk_baseannot.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M fpdfsdk/fsdk_baseform.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M fpdfsdk/fsdk_mgr.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M fpdfsdk/fxedit/fxet_edit.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M fpdfsdk/pdfwindow/PWL_Caret.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M fpdfsdk/pdfwindow/PWL_ComboBox.cpp View 1 chunk +1 line, -1 line 0 comments Download
M fpdfsdk/pdfwindow/PWL_Edit.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M fpdfsdk/pdfwindow/PWL_ScrollBar.cpp View 1 chunk +1 line, -1 line 0 comments Download
M fpdfsdk/pdfwindow/PWL_Utils.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M pdfium.gyp View 1 2 3 1 chunk +5 lines, -3 lines 0 comments Download
M xfa/fde/cfde_path.h View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fde/fde_gedevice.h View 1 chunk +2 lines, -1 line 0 comments Download
M xfa/fde/fde_gedevice.cpp View 1 chunk +2 lines, -0 lines 0 comments Download
M xfa/fde/fde_visualset.h View 1 chunk +2 lines, -0 lines 0 comments Download
M xfa/fde/tto/fde_textout.h View 2 chunks +3 lines, -1 line 0 comments Download
M xfa/fgas/font/fgas_stdfontmgr.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M xfa/fgas/layout/fgas_textbreak.h View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxbarcode/BC_TwoDimWriter.cpp View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M xfa/fxbarcode/oned/BC_OneDimWriter.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxbarcode/oned/BC_OneDimWriter.cpp View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M xfa/fxbarcode/oned/BC_OnedEAN13Writer.cpp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M xfa/fxbarcode/oned/BC_OnedEAN8Writer.cpp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M xfa/fxbarcode/oned/BC_OnedUPCAWriter.cpp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M xfa/fxfa/app/xfa_ffwidget.cpp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M xfa/fxfa/include/xfa_ffwidget.h View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxfa/parser/xfa_localemgr.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M xfa/fxgraphics/cfx_graphics.cpp View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M xfa/fxgraphics/cfx_path_generator.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M xfa/fxgraphics/cfx_path_generator.cpp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M xfa/fxgraphics/include/cfx_graphics.h View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 28 (19 generated)
npm
PTAL Sorry about the length, if I had seen how much these classes were being ...
4 years, 4 months ago (2016-08-08 21:20:18 UTC) #7
Lei Zhang
On 2016/08/08 21:20:18, npm wrote: > PTAL > Sorry about the length, if I had ...
4 years, 4 months ago (2016-08-08 22:18:35 UTC) #8
dsinclair
The bulk of this is just include changes so I think it's fine for this ...
4 years, 4 months ago (2016-08-09 14:14:35 UTC) #9
npm
TALP https://codereview.chromium.org/2223213002/diff/1/core/fpdfapi/fpdf_page/cpdf_allstates.cpp File core/fpdfapi/fpdf_page/cpdf_allstates.cpp (right): https://codereview.chromium.org/2223213002/diff/1/core/fpdfapi/fpdf_page/cpdf_allstates.cpp#newcode3 core/fpdfapi/fpdf_page/cpdf_allstates.cpp:3: // becore/fpdfapi/fpdf_page/cpdf_graphstate.h On 2016/08/09 14:14:35, dsinclair wrote: > ...
4 years, 4 months ago (2016-08-09 16:26:12 UTC) #12
dsinclair
lgtm
4 years, 4 months ago (2016-08-10 13:20:58 UTC) #16
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/2223213002/40001
4 years, 4 months ago (2016-08-10 13:21:04 UTC) #17
commit-bot: I haz the power
Failed to apply patch for xfa/fxbarcode/oned/BC_OneDimWriter.h: While running git apply --index -3 -p1; error: patch ...
4 years, 4 months ago (2016-08-10 13:21:36 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/2223213002/60001
4 years, 4 months ago (2016-08-10 14:51:14 UTC) #26
commit-bot: I haz the power
4 years, 4 months ago (2016-08-10 14:51:45 UTC) #28
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://pdfium.googlesource.com/pdfium/+/9ada2d83cbb629f286936ebc7a208a61164f...

Powered by Google App Engine
This is Rietveld 408576698