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

Issue 222723002: Fix matrix adjustment passed to filter processing. (Closed)

Created:
6 years, 8 months ago by Stephen White
Modified:
6 years, 8 months ago
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Fix matrix adjustment passed to filter processing. When adjusting the CTM for filter use, we were subtracting off the destination coordinates of the drawDevice() or drawSprite(). This is not quite correct: we should subtract off the coordinates relative to the device origin instead. This occurs when one filtered saveLayer() is drawn inside another saveLayer(), both with non-zero origin. This fixes layout test svg/batik/text/smallFonts.svg in Blink, and is exercised by the provided unit test. BUG=skia: R=bsalomon@google.com Committed: https://code.google.com/p/skia/source/detail?r=14029

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -2 lines) Patch
M src/core/SkCanvas.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M tests/ImageFilterTest.cpp View 2 chunks +52 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Stephen White
Brian: PTAL. Thanks!
6 years, 8 months ago (2014-04-02 19:10:44 UTC) #1
bsalomon
lgtm
6 years, 8 months ago (2014-04-02 19:18:52 UTC) #2
Stephen White
6 years, 8 months ago (2014-04-02 19:20:10 UTC) #3
Message was sent while issue was closed.
Committed patchset #1 manually as r14029 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698