DescriptionSkPDF: 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 #
Messages
Total messages: 27 (9 generated)
|