Keyboard Shortcuts

File
u :up to issue
m :publish + mail comments
M :edit review message
j / k :jump to file after / before current file
J / K :jump to next file with a comment after / before current file
Side-by-side diff
i :toggle intra-line diffs
e :expand all comments
c :collapse all comments
s :toggle showing all comments
n / p :next / previous diff chunk or comment
N / P :next / previous comment
<Up> / <Down> :next / previous line
<Enter> :respond to / edit current comment
d :mark current comment as done
Issue
u :up to list of issues
m :publish + mail comments
j / k :jump to patch after / before current patch
o / <Enter> :open current patch in side-by-side view
i :open current patch in unified diff view
Issue List
j / k :jump to issue after / before current issue
o / <Enter> :open current issue
# : close issue
Comment/message editing
<Ctrl> + s or <Ctrl> + Enter :save comment
<Esc> :cancel edit
Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(134)
Issues Repositories Search
Open Issues | Closed Issues | All Issues | Sign in with your Google Account to create issues and add comments

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.
Custom implementation of SkPDFDevice::drawBitmapRect

Patch Set 1 #

Patch Set 2 : #

Total comments: 5

Patch Set 3 : #

Created: 12 years, 11 months ago
Download [raw] [tar.bz2]
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
Total messages: 5
|
edisonn
12 years, 11 months ago (2013年02月11日 17:12:16 UTC) #1
Sign in to reply to this message.
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
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:893: dstPtr = &tmpDst;
dstPtr doesn't seem to be used after this... is dstPtr needed?
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
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.
Steve VanDeBogart
12 years, 11 months ago (2013年02月11日 20:59:57 UTC) #3
Sign in to reply to this message.
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
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:893: dstPtr = &tmpDst;
On 2013年02月11日 20:59:34, Steve VanDeBogart wrote:
> dstPtr doesn't seem to be used after this... is dstPtr needed?
Done.
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
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.
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.
Steve VanDeBogart
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#newcode896 src/pdf/SkPDFDevice.cpp:896: // since we may need to clamp to ...
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

AltStyle によって変換されたページ (->オリジナル) /