DescriptionFix image filters for PDF backend.
Currently, the PDF backend does not support image filters (since PDF
does not have that functionality), so it simply removes them. This is
causing Chrome print preview to render incorrectly (see bug). The fix
here is to fall back to a raster device for image filters, as we used
to do in Blink. The resulting bitmap will be drawn to the destination
device as a normal main-memory-backed bitmap.
Note: this change invalidates the PDF results of all GMs containing
image filters (since they'll actually be rendered).
BUG=422144
Committed: https://skia.googlesource.com/skia/+/b0e89dcc1d8c1c2f9f7ffb45e8609cdb4a68104b
Patch Set 1 #Patch Set 2 : Alternate fix for intermediate buffers: always use ImageFilter Usage #Patch Set 3 : Add test suppressions. #Patch Set 4 : Fix code review link. #Patch Set 5 : Add a unit test; fix comments. #Patch Set 6 : Fix typo in test. #Patch Set 7 : Fix whitespace #Patch Set 8 : Update to ToT #Patch Set 9 : Add a comment about rendering quality, and reference appropriate skbug #
Messages
Total messages: 12 (3 generated)
|