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

Issue 1372783003: SkPDF: Implement drawImage*() properly (Closed)

Created:
5 years, 2 months ago by hal.canary
Modified:
5 years, 2 months ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

SkPDF: Implement drawImage*() properly drawImage calls now properly embeds the original jpeg. NOTE: drawBitmap*() calls no longer embed JPEG files when possible (this is in advance of eliminating bitmaps backed by encoded data). Chromium has already moved from drawBitmap to drawImage. Comparisons: control: total PDF drawImage/drawBitmap calls: 8010 total PDF jpeg images: 0 total PDF regular images: 3581 experiament: total PDF drawImage/drawBitmap calls: 8014 total PDF jpeg images: 271 total PDF regular images: 3311 total PDF regular images: 3582 (271 + 3311) When comparing rendered output there were perceptual differences in the following four GMs: colorcube, emboss, colormatrix, and tablecolorfilter. All of these differences were improvements (that is, closer to the 8888 rendering) due fixing a bug with colorfilters and forgetting to call notifyPixelsChanged. No SKPs had perceptual differences. Total PDF size dropped from 133964 kB to 126276 kB, a 5.7% improvement (mostly due to restoring use of JPG images in SKPs). BUG=skia:4370 Committed: https://skia.googlesource.com/skia/+/7a14b310d6c618fa2151d93a43b29f9599adc32a

Patch Set 1 #

Total comments: 1

Patch Set 2 : unit test, work around wierd bug #

Patch Set 3 : do hashmap->foreach() correctly #

Patch Set 4 : 2015-09-28 (Monday) 19:16:50 EDT #

Patch Set 5 : 2015-09-29 (Tuesday) 14:09:03 EDT #

Total comments: 6

Patch Set 6 : 2015-09-30 (Wednesday) 21:22:24 EDT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+477 lines, -354 lines) Patch
M dm/DM.cpp View 1 2 3 4 5 2 chunks +7 lines, -0 lines 0 comments Download
M gm/repeated_bitmap.cpp View 1 2 3 4 1 chunk +27 lines, -35 lines 0 comments Download
M gyp/pdf.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M src/pdf/SkJpegInfo.h View 1 chunk +3 lines, -2 lines 0 comments Download
M src/pdf/SkJpegInfo.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pdf/SkPDFBitmap.h View 1 chunk +4 lines, -23 lines 0 comments Download
M src/pdf/SkPDFBitmap.cpp View 1 2 3 4 5 6 chunks +121 lines, -139 lines 0 comments Download
M src/pdf/SkPDFCanon.h View 3 chunks +21 lines, -5 lines 0 comments Download
M src/pdf/SkPDFCanon.cpp View 1 2 3 3 chunks +27 lines, -6 lines 0 comments Download
M src/pdf/SkPDFDevice.h View 2 chunks +17 lines, -6 lines 0 comments Download
M src/pdf/SkPDFDevice.cpp View 1 2 3 4 5 13 chunks +196 lines, -134 lines 0 comments Download
M src/pdf/SkPDFTypes.h View 1 2 3 4 2 chunks +11 lines, -0 lines 0 comments Download
M src/pdf/SkPDFTypes.cpp View 1 2 3 4 1 chunk +14 lines, -0 lines 0 comments Download
M tests/PDFJpegEmbedTest.cpp View 1 3 chunks +26 lines, -2 lines 0 comments Download

Messages

Total messages: 27 (9 generated)
hal.canary
reed@, PTAL at big picture tomhudson@, PTAL at SkPDF details mtklein@, PTAL at SkTHash I ...
5 years, 2 months ago (2015-09-26 17:02:34 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1372783003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1372783003/1
5 years, 2 months ago (2015-09-26 17:29:31 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot on client.skia (JOB_TIMED_OUT, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot/builds/3354) Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot on ...
5 years, 2 months ago (2015-09-26 23:29:48 UTC) #6
mtklein
https://codereview.chromium.org/1372783003/diff/1/include/private/SkTHash.h File include/private/SkTHash.h (right): https://codereview.chromium.org/1372783003/diff/1/include/private/SkTHash.h#newcode247 include/private/SkTHash.h:247: void foreachValue(Fn&& fn) const { What value does this ...
5 years, 2 months ago (2015-09-27 07:20:33 UTC) #7
reed1
5 years, 2 months ago (2015-09-27 07:48:18 UTC) #9
reed1
Do we have tools to dump stats about a conversion to PDF? e.g. - how ...
5 years, 2 months ago (2015-09-27 07:49:33 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1372783003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1372783003/20001
5 years, 2 months ago (2015-09-27 18:03:56 UTC) #12
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-09-27 18:09:55 UTC) #14
hal.canary
On 2015/09/27 07:20:33, mtklein wrote: > https://codereview.chromium.org/1372783003/diff/1/include/private/SkTHash.h > File include/private/SkTHash.h (right): > > https://codereview.chromium.org/1372783003/diff/1/include/private/SkTHash.h#newcode247 > ...
5 years, 2 months ago (2015-09-27 22:45:42 UTC) #15
hal.canary
On 2015/09/27 07:49:33, reed1 wrote: > Do we have tools to dump stats about a ...
5 years, 2 months ago (2015-09-27 23:27:41 UTC) #16
hal.canary
Please take another look.
5 years, 2 months ago (2015-09-29 18:10:07 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1372783003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1372783003/80001
5 years, 2 months ago (2015-09-29 18:27:47 UTC) #19
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-09-29 18:34:34 UTC) #21
tomhudson
First question is just a nit, other two should probably be taken care of before ...
5 years, 2 months ago (2015-09-30 16:10:30 UTC) #22
hal.canary
https://chromiumcodereview.appspot.com/1372783003/diff/80001/src/pdf/SkPDFBitmap.cpp File src/pdf/SkPDFBitmap.cpp (right): https://chromiumcodereview.appspot.com/1372783003/diff/80001/src/pdf/SkPDFBitmap.cpp#newcode360 src/pdf/SkPDFBitmap.cpp:360: void PDFDefaultBitmap::emitObject(SkWStream* stream, On 2015/09/30 16:10:29, tomhudson wrote: > ...
5 years, 2 months ago (2015-10-01 01:24:55 UTC) #23
tomhudson
lgtm
5 years, 2 months ago (2015-10-01 14:20:28 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1372783003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1372783003/100001
5 years, 2 months ago (2015-10-01 14:21:43 UTC) #26
commit-bot: I haz the power
5 years, 2 months ago (2015-10-01 14:28:17 UTC) #27
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://skia.googlesource.com/skia/+/7a14b310d6c618fa2151d93a43b29f9599adc32a

Powered by Google App Engine
This is Rietveld 408576698