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

Issue 2163103002: Use smart pointers for graphics device classes (Closed)

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

Description

Use smart pointers for graphics device classes Use unique_ptr for class owned member variables. Also clean up some style issues such as removing unused functions and casting to raw pointer. BUG=pdfium:518 Committed: https://pdfium.googlesource.com/pdfium/+/c38cd6eb274429a5755e04d2e22a606375851717

Patch Set 1 #

Patch Set 2 : small fixes #

Patch Set 3 : rebase #

Patch Set 4 : vector change #

Total comments: 8

Patch Set 5 : address comments #

Patch Set 6 : fix all platforms #

Unified diffs Side-by-side diffs Delta from patch set Stats (+168 lines, -170 lines) Patch
M core/fpdfapi/fpdf_render/fpdf_render_image.cpp View 1 2 3 4 1 chunk +59 lines, -44 lines 0 comments Download
M core/fpdfapi/fpdf_render/render_int.h View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M core/fxcrt/include/fx_memory.h View 1 2 3 4 5 2 chunks +7 lines, -0 lines 0 comments Download
M core/fxge/agg/fx_agg_driver.h View 1 2 chunks +7 lines, -4 lines 0 comments Download
M core/fxge/agg/fx_agg_driver.cpp View 1 2 3 4 5 11 chunks +38 lines, -48 lines 0 comments Download
M core/fxge/apple/fx_quartz_device.cpp View 1 2 3 4 5 2 chunks +10 lines, -11 lines 0 comments Download
M core/fxge/dib/fx_dib_main.cpp View 1 2 3 4 5 chunks +12 lines, -23 lines 0 comments Download
M core/fxge/ge/fx_ge_device.cpp View 1 2 3 4 1 chunk +5 lines, -13 lines 0 comments Download
M core/fxge/include/fx_dib.h View 1 2 3 4 6 chunks +8 lines, -8 lines 0 comments Download
M core/fxge/include/fx_ge.h View 1 2 3 4 2 chunks +6 lines, -4 lines 0 comments Download
M core/fxge/skia/fx_skia_device.cpp View 1 2 3 4 5 3 chunks +4 lines, -4 lines 0 comments Download
M core/fxge/win32/fx_win32_device.cpp View 1 2 3 4 5 6 chunks +6 lines, -6 lines 0 comments Download
M core/fxge/win32/fx_win32_print.cpp View 3 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 17 (11 generated)
Wei Li
pls review, thanks
4 years, 5 months ago (2016-07-20 22:42:00 UTC) #8
Lei Zhang
Maybe double check and make sure we are not breaking the build with Skia?
4 years, 5 months ago (2016-07-20 23:00:57 UTC) #9
Lei Zhang
lgtm https://codereview.chromium.org/2163103002/diff/120001/core/fpdfapi/fpdf_render/render_int.h File core/fpdfapi/fpdf_render/render_int.h (right): https://codereview.chromium.org/2163103002/diff/120001/core/fpdfapi/fpdf_render/render_int.h#newcode622 core/fpdfapi/fpdf_render/render_int.h:622: void TranslateScanline(std::vector<uint8_t>* dest_buf, Can we flip the parameters ...
4 years, 5 months ago (2016-07-20 23:09:19 UTC) #10
Wei Li
thanks, made the changes. https://codereview.chromium.org/2163103002/diff/120001/core/fpdfapi/fpdf_render/render_int.h File core/fpdfapi/fpdf_render/render_int.h (right): https://codereview.chromium.org/2163103002/diff/120001/core/fpdfapi/fpdf_render/render_int.h#newcode622 core/fpdfapi/fpdf_render/render_int.h:622: void TranslateScanline(std::vector<uint8_t>* dest_buf, On 2016/07/20 ...
4 years, 5 months ago (2016-07-21 16:47:07 UTC) #11
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/2163103002/180001
4 years, 5 months ago (2016-07-21 21:43:57 UTC) #15
commit-bot: I haz the power
4 years, 5 months ago (2016-07-21 21:44:21 UTC) #17
Message was sent while issue was closed.
Committed patchset #6 (id:180001) as
https://pdfium.googlesource.com/pdfium/+/c38cd6eb274429a5755e04d2e22a60637585...

Powered by Google App Engine
This is Rietveld 408576698