Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1685)

Issue 7097045: Add option to render PDFs to memory only. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 10 months ago by edisonn
Modified:
11 years, 10 months ago
Reviewers:
epoger, EricB
CC:
skia-review_googlegroups.com
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Add option to render PDFs to memory only. Committed: https://code.google.com/p/skia/source/detail?r=7140

Patch Set 1 #

Total comments: 7

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -17 lines) Patch
M tools/PdfRenderer.h View 1 1 chunk +1 line, -1 line 0 comments Download
M tools/PdfRenderer.cpp View 1 1 chunk +2 lines, -7 lines 0 comments Download
M tools/render_pdfs_main.cpp View 1 5 chunks +28 lines, -9 lines 0 comments Download

Messages

Total messages: 5
edisonn
Required by https://codereview.appspot.com/6940081/
11 years, 10 months ago (2013-01-11 19:48:28 UTC) #1
epoger
https://codereview.appspot.com/7097045/diff/1/tools/PdfRenderer.cpp File tools/PdfRenderer.cpp (right): https://codereview.appspot.com/7097045/diff/1/tools/PdfRenderer.cpp#newcode51 tools/PdfRenderer.cpp:51: bool PdfRenderer::write(const SkString& path) const { Maybe just pass ...
11 years, 10 months ago (2013-01-11 20:00:17 UTC) #2
edisonn
https://codereview.appspot.com/7097045/diff/1/tools/render_pdfs_main.cpp File tools/render_pdfs_main.cpp (right): https://codereview.appspot.com/7097045/diff/1/tools/render_pdfs_main.cpp#newcode214 tools/render_pdfs_main.cpp:214: parse_commandline(argc, argv, &inputs, &outputDir); One usual conventions for readability ...
11 years, 10 months ago (2013-01-11 20:12:20 UTC) #3
edisonn
https://codereview.appspot.com/7097045/diff/1/tools/PdfRenderer.cpp File tools/PdfRenderer.cpp (right): https://codereview.appspot.com/7097045/diff/1/tools/PdfRenderer.cpp#newcode51 tools/PdfRenderer.cpp:51: bool PdfRenderer::write(const SkString& path) const { On 2013/01/11 20:00:17, ...
11 years, 10 months ago (2013-01-11 20:23:42 UTC) #4
epoger
11 years, 10 months ago (2013-01-11 20:26:42 UTC) #5
LGTM!

https://codereview.appspot.com/7097045/diff/1/tools/render_pdfs_main.cpp
File tools/render_pdfs_main.cpp (right):

https://codereview.appspot.com/7097045/diff/1/tools/render_pdfs_main.cpp#newc...
tools/render_pdfs_main.cpp:214: parse_commandline(argc, argv, &inputs,
&outputDir);
On 2013/01/11 20:12:20, edisonn wrote:
> One usual conventions for readability it is to pass a const reference for [in]
> args and a pointer for [out] args
> 
> On 2013/01/11 20:00:17, epoger wrote:
> > I think it would be safer to pass outputDir by reference... that way, you
> don't
> > have to worry about the caller passing NULL or the wrong party freeing a
> > pointer.
> 

Indeed, looking at the "Function Parameters" section of
https://sites.google.com/site/skiadocs/developer-documentation/contributing-c...
I see exactly that guidance.  So please disregard my suggestion.

C++ programmers, always wanting to perform without a net... sigh...
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b