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

Issue 4435074: PDF Device should report non-transformed size for width and height. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 2 months ago by Chris Guillory
Modified:
13 years, 2 months ago
CC:
skia-review_googlegroups.com
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

PDF Device should report non-transformed size for width and height. Committed: http://code.google.com/p/skia/source/detail?r=1217

Patch Set 1 #

Total comments: 14

Patch Set 2 : Updated with comments from Steve. #

Total comments: 2

Patch Set 3 : Fix width<->height mixup. #

Total comments: 4

Patch Set 4 : Move logic into makeABitmap. #

Total comments: 4

Patch Set 5 : Updated with comments from Steve. #

Patch Set 6 : Fix compile error. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -24 lines) Patch
M gm/gmmain.cpp View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M include/pdf/SkPDFDevice.h View 1 2 3 4 5 3 chunks +9 lines, -10 lines 0 comments Download
M src/pdf/SkPDFDevice.cpp View 1 2 3 4 5 3 chunks +20 lines, -11 lines 0 comments Download
M src/pdf/SkPDFShader.cpp View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 12
Chris Guillory
13 years, 2 months ago (2011-04-25 21:16:41 UTC) #1
Steve VanDeBogart
http://codereview.appspot.com/4435074/diff/1/include/pdf/SkPDFDevice.h File include/pdf/SkPDFDevice.h (right): http://codereview.appspot.com/4435074/diff/1/include/pdf/SkPDFDevice.h#newcode49 include/pdf/SkPDFDevice.h:49: * @param contentSize Content size in points. The comment ...
13 years, 2 months ago (2011-04-25 22:12:05 UTC) #2
Chris Guillory
http://codereview.appspot.com/4435074/diff/1/include/pdf/SkPDFDevice.h File include/pdf/SkPDFDevice.h (right): http://codereview.appspot.com/4435074/diff/1/include/pdf/SkPDFDevice.h#newcode49 include/pdf/SkPDFDevice.h:49: * @param contentSize Content size in points. On 2011/04/25 ...
13 years, 2 months ago (2011-04-25 23:12:19 UTC) #3
Steve VanDeBogart
http://codereview.appspot.com/4435074/diff/1/src/pdf/SkPDFDevice.cpp File src/pdf/SkPDFDevice.cpp (right): http://codereview.appspot.com/4435074/diff/1/src/pdf/SkPDFDevice.cpp#newcode135 src/pdf/SkPDFDevice.cpp:135: : SkDevice(NULL, makeABitmap(0, 0), false), On 2011/04/25 23:12:20, Chris ...
13 years, 2 months ago (2011-04-26 02:20:19 UTC) #4
Steve VanDeBogart
I think you also need to update gm/gmmain.cpp
13 years, 2 months ago (2011-04-26 16:51:30 UTC) #5
Chris Guillory
http://codereview.appspot.com/4435074/diff/1/src/pdf/SkPDFDevice.cpp File src/pdf/SkPDFDevice.cpp (right): http://codereview.appspot.com/4435074/diff/1/src/pdf/SkPDFDevice.cpp#newcode135 src/pdf/SkPDFDevice.cpp:135: : SkDevice(NULL, makeABitmap(0, 0), false), On 2011/04/26 02:20:19, Steve ...
13 years, 2 months ago (2011-04-27 02:59:34 UTC) #6
Chris Guillory
On 2011/04/26 16:51:30, Steve VanDeBogart wrote: > I think you also need to update gm/gmmain.cpp ...
13 years, 2 months ago (2011-04-27 03:00:16 UTC) #7
Steve VanDeBogart
LGTM w/ nits. http://codereview.appspot.com/4435074/diff/15001/src/pdf/SkPDFDevice.cpp File src/pdf/SkPDFDevice.cpp (right): http://codereview.appspot.com/4435074/diff/15001/src/pdf/SkPDFDevice.cpp#newcode127 src/pdf/SkPDFDevice.cpp:127: static inline SkBitmap makeABitmap(const SkISize& contentSize, ...
13 years, 2 months ago (2011-04-27 18:39:14 UTC) #8
reed1
this->method() is good for virtual and non-virtual calls. I agree that we should try to ...
13 years, 2 months ago (2011-04-27 18:50:10 UTC) #9
Chris Guillory
http://codereview.appspot.com/4435074/diff/15001/src/pdf/SkPDFDevice.cpp File src/pdf/SkPDFDevice.cpp (right): http://codereview.appspot.com/4435074/diff/15001/src/pdf/SkPDFDevice.cpp#newcode127 src/pdf/SkPDFDevice.cpp:127: static inline SkBitmap makeABitmap(const SkISize& contentSize, On 2011/04/27 18:39:15, ...
13 years, 2 months ago (2011-04-27 19:29:37 UTC) #10
reed1
How does gmmain.cpp compile? Isn't size duplicately defined?
13 years, 2 months ago (2011-04-27 20:19:55 UTC) #11
Chris Guillory
13 years, 2 months ago (2011-04-27 20:22:36 UTC) #12
It doesn't. I just encountered this trying to verify the build on linux.
I'll correct it.

On Wed, Apr 27, 2011 at 1:19 PM, <reed@google.com> wrote:

> How does gmmain.cpp compile? Isn't size duplicately defined?
>
>
> http://codereview.appspot.com/4435074/
>
Sign in to reply to this message.

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