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

Issue 644323006: Fix image filters for PDF backend. (Closed)

Created:
6 years, 2 months ago by Stephen White
Modified:
6 years, 2 months ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

Fix 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -7 lines) Patch
M expectations/gm/ignored-tests.txt View 1 2 3 4 5 6 7 1 chunk +31 lines, -0 lines 0 comments Download
M include/core/SkDevice.h View 1 2 3 4 2 chunks +4 lines, -1 line 0 comments Download
M include/pdf/SkPDFDevice.h View 1 chunk +0 lines, -4 lines 0 comments Download
M src/core/SkCanvas.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkDevice.cpp View 1 chunk +4 lines, -0 lines 0 comments Download
M src/core/SkDeviceImageFilterProxy.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/pdf/SkPDFDevice.cpp View 1 2 3 4 5 6 7 8 2 chunks +10 lines, -0 lines 0 comments Download
M tests/PDFPrimitivesTest.cpp View 1 2 3 4 5 6 2 chunks +52 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (3 generated)
Stephen White
reed@: PTAL. Thanks!
6 years, 2 months ago (2014-10-20 14:20:01 UTC) #2
reed1
This will mean we force all of the contents of that layer to be rasterized ...
6 years, 2 months ago (2014-10-20 18:37:27 UTC) #4
Stephen White
On 2014/10/20 18:37:27, reed1 wrote: > This will mean we force all of the contents ...
6 years, 2 months ago (2014-10-20 18:47:37 UTC) #5
Stephen White
New patch up w/unit test for CPU-fallback; PTAL. Thanks!
6 years, 2 months ago (2014-10-20 19:07:45 UTC) #6
reed1
Lets file a bug about want to do a better job of this [ sniff ...
6 years, 2 months ago (2014-10-20 20:38:49 UTC) #7
reed1
lgtm
6 years, 2 months ago (2014-10-20 20:39:30 UTC) #8
Stephen White
On 2014/10/20 20:38:49, reed1 wrote: > Lets file a bug about want to do a ...
6 years, 2 months ago (2014-10-20 20:54:21 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/644323006/160001
6 years, 2 months ago (2014-10-20 20:56:21 UTC) #11
commit-bot: I haz the power
6 years, 2 months ago (2014-10-20 21:03:17 UTC) #12
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as b0e89dcc1d8c1c2f9f7ffb45e8609cdb4a68104b

Powered by Google App Engine
This is Rietveld 408576698