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

Issue 7306082: Custom implementation of SkPDFDevice::drawBitmapRect

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

Description

Custom implementation of SkPDFDevice::drawBitmapRect

Patch Set 1 #

Patch Set 2 : #

Total comments: 5

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -0 lines) Patch
M include/pdf/SkPDFDevice.h View 1 chunk +3 lines, -0 lines 0 comments Download
M src/pdf/SkPDFDevice.cpp View 1 2 1 chunk +54 lines, -0 lines 0 comments Download

Messages

Total messages: 5
edisonn
12 years, 11 months ago (2013-02-11 17:12:16 UTC) #1
Steve VanDeBogart
https://codereview.appspot.com/7306082/diff/3001/src/pdf/SkPDFDevice.cpp File src/pdf/SkPDFDevice.cpp (right): https://codereview.appspot.com/7306082/diff/3001/src/pdf/SkPDFDevice.cpp#newcode893 src/pdf/SkPDFDevice.cpp:893: dstPtr = &tmpDst; dstPtr doesn't seem to be used ...
12 years, 11 months ago (2013-02-11 20:59:34 UTC) #2
Steve VanDeBogart
12 years, 11 months ago (2013-02-11 20:59:57 UTC) #3
edisonn
https://codereview.appspot.com/7306082/diff/3001/src/pdf/SkPDFDevice.cpp File src/pdf/SkPDFDevice.cpp (right): https://codereview.appspot.com/7306082/diff/3001/src/pdf/SkPDFDevice.cpp#newcode893 src/pdf/SkPDFDevice.cpp:893: dstPtr = &tmpDst; On 2013/02/11 20:59:34, Steve VanDeBogart wrote: ...
12 years, 11 months ago (2013-02-11 21:56:38 UTC) #4
Steve VanDeBogart
12 years, 11 months ago (2013-02-11 22:28:18 UTC) #5
LGTM

https://codereview.appspot.com/7306082/diff/3001/src/pdf/SkPDFDevice.cpp
File src/pdf/SkPDFDevice.cpp (right):

https://codereview.appspot.com/7306082/diff/3001/src/pdf/SkPDFDevice.cpp#newc...
src/pdf/SkPDFDevice.cpp:896: // since we may need to clamp to the borders of the
src rect within
On 2013/02/11 21:56:38, edisonn wrote:
> If I do this now, I am doing more than a simple port from SkDevice:: to
> SkPdfDevice/VectorPlatformDeviceEmf, and I might introduce new issues. I would
> rather preserve 100% compatibility with the old code.

Ok, minimal change for now.  SG.  Do you want to add a TODO for optimizing?
> 
> On 2013/02/11 20:59:34, Steve VanDeBogart wrote:
> > Shouldn't the drawBitmap code already handle this?  It should handle srcRect
> > correctly.  So all we should need to do here is calculate the correct
matrix,
> > right?
>
Sign in to reply to this message.

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