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

Issue 25054002: Use SkPicture::ExtractBitmap callback in pdf too. (Closed)

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

Description

Use SkPicture::ExtractBitmap callback in pdf too, there is no need for a specialized function pointer for pdf only only to pass a rectangle, when we can use subseted bitmaps. Committed: http://code.google.com/p/skia/source/detail?r=11591

Patch Set 1 #

Total comments: 8

Patch Set 2 : updates #

Patch Set 3 : fix for mac #

Patch Set 4 : after rebase #

Patch Set 5 : fix typo (&) #

Patch Set 6 : fix return of function with changed signature #

Patch Set 7 : fix return on another funtion with signature change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -71 lines) Patch
M gm/gmmain.cpp View 1 2 3 4 5 6 4 chunks +21 lines, -21 lines 0 comments Download
M include/pdf/SkPDFDevice.h View 4 chunks +3 lines, -4 lines 0 comments Download
M src/pdf/SkPDFImage.h View 4 chunks +4 lines, -3 lines 0 comments Download
M src/pdf/SkPDFImage.cpp View 1 3 chunks +24 lines, -15 lines 0 comments Download
M tests/PDFPrimitivesTest.cpp View 2 chunks +6 lines, -4 lines 0 comments Download
M tools/PdfRenderer.h View 3 chunks +3 lines, -3 lines 0 comments Download
M tools/render_pdfs_main.cpp View 1 2 3 4 5 3 chunks +25 lines, -21 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
edisonn
7 years, 2 months ago (2013-09-27 14:20:56 UTC) #1
reed1
Will there need to be any changes on the Chrome side when we do the ...
7 years, 2 months ago (2013-09-27 14:50:20 UTC) #2
edisonn
On 2013/09/27 14:50:20, reed1 wrote: > Will there need to be any changes on the ...
7 years, 2 months ago (2013-09-27 15:13:39 UTC) #3
vandebo (ex-Chrome)
Also, please fix up the issue description. https://codereview.chromium.org/25054002/diff/1/src/pdf/SkPDFImage.cpp File src/pdf/SkPDFImage.cpp (right): https://codereview.chromium.org/25054002/diff/1/src/pdf/SkPDFImage.cpp#newcode487 src/pdf/SkPDFImage.cpp:487: // Extract ...
7 years, 2 months ago (2013-09-27 16:06:13 UTC) #4
reed1
https://codereview.chromium.org/25054002/diff/1/src/pdf/SkPDFImage.cpp File src/pdf/SkPDFImage.cpp (right): https://codereview.chromium.org/25054002/diff/1/src/pdf/SkPDFImage.cpp#newcode488 src/pdf/SkPDFImage.cpp:488: if (!fBitmap.extractSubset(&subset, fSrcRect)) { On 2013/09/27 16:06:13, vandebo wrote: ...
7 years, 2 months ago (2013-09-27 16:15:29 UTC) #5
vandebo (ex-Chrome)
https://codereview.chromium.org/25054002/diff/1/src/pdf/SkPDFImage.cpp File src/pdf/SkPDFImage.cpp (right): https://codereview.chromium.org/25054002/diff/1/src/pdf/SkPDFImage.cpp#newcode488 src/pdf/SkPDFImage.cpp:488: if (!fBitmap.extractSubset(&subset, fSrcRect)) { On 2013/09/27 16:15:29, reed1 wrote: ...
7 years, 2 months ago (2013-09-27 16:16:36 UTC) #6
reed1
On 2013/09/27 16:16:36, vandebo wrote: > https://codereview.chromium.org/25054002/diff/1/src/pdf/SkPDFImage.cpp > File src/pdf/SkPDFImage.cpp (right): > > https://codereview.chromium.org/25054002/diff/1/src/pdf/SkPDFImage.cpp#newcode488 > ...
7 years, 2 months ago (2013-09-27 16:19:18 UTC) #7
vandebo (ex-Chrome)
On 2013/09/27 16:19:18, reed1 wrote: > On 2013/09/27 16:16:36, vandebo wrote: > > https://codereview.chromium.org/25054002/diff/1/src/pdf/SkPDFImage.cpp > ...
7 years, 2 months ago (2013-09-27 16:23:35 UTC) #8
reed1
On 2013/09/27 16:23:35, vandebo wrote: > On 2013/09/27 16:19:18, reed1 wrote: > > On 2013/09/27 ...
7 years, 2 months ago (2013-09-27 16:26:37 UTC) #9
edisonn
https://codereview.chromium.org/25054002/diff/1/src/pdf/SkPDFImage.cpp File src/pdf/SkPDFImage.cpp (right): https://codereview.chromium.org/25054002/diff/1/src/pdf/SkPDFImage.cpp#newcode490 src/pdf/SkPDFImage.cpp:490: if (!fBitmap.copyTo(&subset, fBitmap.config())) { On 2013/09/27 16:06:13, vandebo wrote: ...
7 years, 2 months ago (2013-09-27 17:57:19 UTC) #10
edisonn
On 2013/09/27 17:57:19, edisonn wrote: > https://codereview.chromium.org/25054002/diff/1/src/pdf/SkPDFImage.cpp > File src/pdf/SkPDFImage.cpp (right): > > https://codereview.chromium.org/25054002/diff/1/src/pdf/SkPDFImage.cpp#newcode490 > ...
7 years, 2 months ago (2013-10-03 15:23:07 UTC) #11
vandebo (ex-Chrome)
Please fix the change description, then LGTM. - no need to list the files changed ...
7 years, 2 months ago (2013-10-03 15:28:19 UTC) #12
scroggo
lgtm.
7 years, 2 months ago (2013-10-03 15:29:29 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/edisonn@google.com/25054002/36001
7 years, 2 months ago (2013-10-03 18:27:37 UTC) #14
commit-bot: I haz the power
Presubmit check for 25054002-36001 failed and returned exit status 1. Running presubmit commit checks ...
7 years, 2 months ago (2013-10-03 18:27:41 UTC) #15
edisonn
Mike or Brian needs to ok the cl for public api changes
7 years, 2 months ago (2013-10-03 19:07:48 UTC) #16
bsalomon
On 2013/10/03 19:07:48, edisonn wrote: > Mike or Brian needs to ok the cl for ...
7 years, 2 months ago (2013-10-03 19:15:50 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/edisonn@google.com/25054002/36001
7 years, 2 months ago (2013-10-03 19:20:07 UTC) #18
commit-bot: I haz the power
7 years, 2 months ago (2013-10-03 19:29:23 UTC) #19
Message was sent while issue was closed.
Change committed as 11591

Powered by Google App Engine
This is Rietveld 408576698