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

Issue 19000004: add ability to specify the DPI at which to render the page (Closed)

Created:
7 years, 5 months ago by edisonn
Modified:
7 years, 5 months ago
Reviewers:
reed1
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

add ability to specify the DPI at which to render the page Committed: https://code.google.com/p/skia/source/detail?r=10009

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -17 lines) Patch
M experimental/PdfViewer/SkPdfRenderer.h View 2 chunks +2 lines, -1 line 2 comments Download
M experimental/PdfViewer/SkPdfRenderer.cpp View 3 chunks +10 lines, -9 lines 0 comments Download
M experimental/PdfViewer/pdf_viewer_main.cpp View 2 chunks +11 lines, -6 lines 0 comments Download
M samplecode/SamplePdfFileViewer.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
edisonn
Committed patchset #1 manually as r10009.
7 years, 5 months ago (2013-07-11 15:20:53 UTC) #1
reed1
https://codereview.chromium.org/19000004/diff/1/experimental/PdfViewer/SkPdfRenderer.h File experimental/PdfViewer/SkPdfRenderer.h (right): https://codereview.chromium.org/19000004/diff/1/experimental/PdfViewer/SkPdfRenderer.h#newcode24 experimental/PdfViewer/SkPdfRenderer.h:24: bool renderPage(int page, SkCanvas* canvas, const SkRect& dst) const; ...
7 years, 5 months ago (2013-07-11 15:27:13 UTC) #2
edisonn
7 years, 5 months ago (2013-07-11 15:36:24 UTC) #3
Message was sent while issue was closed.
https://codereview.chromium.org/19000004/diff/1/experimental/PdfViewer/SkPdfR...
File experimental/PdfViewer/SkPdfRenderer.h (right):

https://codereview.chromium.org/19000004/diff/1/experimental/PdfViewer/SkPdfR...
experimental/PdfViewer/SkPdfRenderer.h:24: bool renderPage(int page, SkCanvas*
canvas, const SkRect& dst) const;
On 2013/07/11 15:27:13, reed1 wrote:
> Why is this better than just using the matrix on the canvas?

there is some magic I need to do to remap the matrix, since in pdf the (0,0) is
on the bottom left, unlike skia where is top left. I rather have the magic in
the renderpage, rather than any caller to have to implement it.

If I get rid of it, then we can use the matrix

Powered by Google App Engine
This is Rietveld 408576698