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

Issue 54913004: Implement DPI for perspective bitmaps in PDF - we save the bitmap at the resolution requested. (Closed)

Created:
7 years, 1 month ago by edisonn
Modified:
7 years, 1 month ago
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Implement DPI for perspective bitmaps in PDF - we save the bitmap at the resolution requested. R=reed@google.com, vandebo@chromium.org Committed: https://code.google.com/p/skia/source/detail?r=12230

Patch Set 1 #

Patch Set 2 : re-upload (last one failed) #

Patch Set 3 : 80c/l, remove commentd code #

Total comments: 7

Patch Set 4 : remove sqrt #

Total comments: 8

Patch Set 5 : use SkScalar instead of float #

Total comments: 8

Patch Set 6 : fix scaling #

Patch Set 7 : remove redundants scale ops #

Patch Set 8 : take 2, matrix handling #

Total comments: 11

Patch Set 9 : nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -15 lines) Patch
M gm/gmmain.cpp View 1 2 3 4 5 6 7 8 4 chunks +10 lines, -2 lines 0 comments Download
M include/pdf/SkPDFDevice.h View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -5 lines 0 comments Download
M src/pdf/SkPDFDevice.cpp View 1 2 3 4 5 6 7 8 7 chunks +37 lines, -8 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
edisonn
7 years, 1 month ago (2013-10-31 18:02:31 UTC) #1
vandebo (ex-Chrome)
The scaling wasn't obvious to me, please explain. If appropriate, add a comment. https://codereview.chromium.org/54913004/diff/90001/src/pdf/SkPDFDevice.cpp File ...
7 years, 1 month ago (2013-10-31 19:26:43 UTC) #2
edisonn
https://codereview.chromium.org/54913004/diff/90001/src/pdf/SkPDFDevice.cpp File src/pdf/SkPDFDevice.cpp (right): https://codereview.chromium.org/54913004/diff/90001/src/pdf/SkPDFDevice.cpp#newcode2070 src/pdf/SkPDFDevice.cpp:2070: float scaleX = sqrt(fRasterDpi / (float)DPI_FOR_RASTER_SCALE_ONE); On 2013/10/31 19:26:43, ...
7 years, 1 month ago (2013-10-31 19:49:31 UTC) #3
vandebo (ex-Chrome)
https://codereview.chromium.org/54913004/diff/90001/src/pdf/SkPDFDevice.cpp File src/pdf/SkPDFDevice.cpp (right): https://codereview.chromium.org/54913004/diff/90001/src/pdf/SkPDFDevice.cpp#newcode2101 src/pdf/SkPDFDevice.cpp:2101: offsetMatrix.postScale(scaleX, scaleY); On 2013/10/31 19:49:31, edisonn wrote: > On ...
7 years, 1 month ago (2013-10-31 23:20:35 UTC) #4
edisonn
https://codereview.chromium.org/54913004/diff/130001/src/pdf/SkPDFDevice.cpp File src/pdf/SkPDFDevice.cpp (right): https://codereview.chromium.org/54913004/diff/130001/src/pdf/SkPDFDevice.cpp#newcode2070 src/pdf/SkPDFDevice.cpp:2070: float scaleX = fRasterDpi / (float)DPI_FOR_RASTER_SCALE_ONE; On 2013/10/31 23:20:36, ...
7 years, 1 month ago (2013-11-01 15:00:08 UTC) #5
vandebo (ex-Chrome)
https://codereview.chromium.org/54913004/diff/130001/src/pdf/SkPDFDevice.cpp File src/pdf/SkPDFDevice.cpp (right): https://codereview.chromium.org/54913004/diff/130001/src/pdf/SkPDFDevice.cpp#newcode2077 src/pdf/SkPDFDevice.cpp:2077: scaleY = fabs(scaleY); On 2013/11/01 15:00:08, edisonn wrote: > ...
7 years, 1 month ago (2013-11-01 22:13:42 UTC) #6
edisonn
https://codereview.chromium.org/54913004/diff/130001/src/pdf/SkPDFDevice.cpp File src/pdf/SkPDFDevice.cpp (right): https://codereview.chromium.org/54913004/diff/130001/src/pdf/SkPDFDevice.cpp#newcode2077 src/pdf/SkPDFDevice.cpp:2077: scaleY = fabs(scaleY); On 2013/11/01 22:13:42, vandebo wrote: > ...
7 years, 1 month ago (2013-11-04 18:04:57 UTC) #7
vandebo (ex-Chrome)
Let me know if you'd like more clarification. https://codereview.chromium.org/54913004/diff/180001/src/pdf/SkPDFDevice.cpp File src/pdf/SkPDFDevice.cpp (right): https://codereview.chromium.org/54913004/diff/180001/src/pdf/SkPDFDevice.cpp#newcode2197 src/pdf/SkPDFDevice.cpp:2197: scaleX ...
7 years, 1 month ago (2013-11-04 19:55:10 UTC) #8
edisonn
https://codereview.chromium.org/54913004/diff/180001/src/pdf/SkPDFDevice.cpp File src/pdf/SkPDFDevice.cpp (right): https://codereview.chromium.org/54913004/diff/180001/src/pdf/SkPDFDevice.cpp#newcode2197 src/pdf/SkPDFDevice.cpp:2197: scaleX *= fInitialTransform.getScaleX(); On 2013/11/04 19:55:10, vandebo wrote: > ...
7 years, 1 month ago (2013-11-05 20:33:31 UTC) #9
vandebo (ex-Chrome)
This is what I think it should look like. I haven't tested it. https://codereview.chromium.org/60863003
7 years, 1 month ago (2013-11-05 21:27:15 UTC) #10
edisonn
On 2013/11/05 21:27:15, vandebo wrote: > This is what I think it should look like. ...
7 years, 1 month ago (2013-11-05 21:40:57 UTC) #11
vandebo (ex-Chrome)
On 2013/11/05 21:40:57, edisonn wrote: > On 2013/11/05 21:27:15, vandebo wrote: > > This is ...
7 years, 1 month ago (2013-11-06 18:42:00 UTC) #12
edisonn
On 2013/11/06 18:42:00, vandebo wrote: > On 2013/11/05 21:40:57, edisonn wrote: > > On 2013/11/05 ...
7 years, 1 month ago (2013-11-07 18:06:01 UTC) #13
edisonn
This solution should be better.
7 years, 1 month ago (2013-11-07 19:50:07 UTC) #14
vandebo (ex-Chrome)
This seems right. A few nits... https://codereview.chromium.org/54913004/diff/440001/gm/gmmain.cpp File gm/gmmain.cpp (right): https://codereview.chromium.org/54913004/diff/440001/gm/gmmain.cpp#newcode1480 gm/gmmain.cpp:1480: DEFINE_int32(pdfRasterDpi, 72, "Scale ...
7 years, 1 month ago (2013-11-07 22:43:59 UTC) #15
edisonn
https://codereview.chromium.org/54913004/diff/440001/gm/gmmain.cpp File gm/gmmain.cpp (right): https://codereview.chromium.org/54913004/diff/440001/gm/gmmain.cpp#newcode1480 gm/gmmain.cpp:1480: DEFINE_int32(pdfRasterDpi, 72, "Scale at which at which the non ...
7 years, 1 month ago (2013-11-11 17:26:55 UTC) #16
vandebo (ex-Chrome)
LGTM https://codereview.chromium.org/54913004/diff/440001/src/pdf/SkPDFDevice.cpp File src/pdf/SkPDFDevice.cpp (right): https://codereview.chromium.org/54913004/diff/440001/src/pdf/SkPDFDevice.cpp#newcode2198 src/pdf/SkPDFDevice.cpp:2198: total.postConcat(fInitialTransform); On 2013/11/11 17:26:56, edisonn wrote: > On ...
7 years, 1 month ago (2013-11-11 17:52:19 UTC) #17
edisonn
Mike/Brian, could you LGTM? made a protected method a public one. Since the CL is ...
7 years, 1 month ago (2013-11-11 20:49:42 UTC) #18
reed1
lgtm
7 years, 1 month ago (2013-11-11 20:51:04 UTC) #19
edisonn
7 years, 1 month ago (2013-11-11 20:55:22 UTC) #20
Message was sent while issue was closed.
Committed patchset #9 manually as r12230 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698