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

Issue 1650433004: Image filters: fix srcOffset handling in asFragmentProcessor() path. (Closed)

Created:
4 years, 10 months ago by Stephen White
Modified:
4 years, 10 months ago
Reviewers:
robertphillips
CC:
reviews_skia.org, msarett
Base URL:
https://skia.googlesource.com/skia.git@m49
Target Ref:
refs/heads/chrome/m49
Project:
skia
Visibility:
Public.

Description

Image filters: fix srcOffset handling in asFragmentProcessor() path. [Cherry-pick of eae84c2e0e2126374cd488a1c8a3e18169145635 to M49 branch.] Filters such as SkMatrixConvolutionImageFilter which use the asFragmentProcessor() path were not correctly handling srcOffset. It is correctly applied to the bounds, but the srcRect and dstRect were computed from the pre-offset bounds. The fix is to move them to just above where they're used in drawing. Note: this change adds a new test case to the imagefiltersgraph GM, so it will have to be rebaselined post-landing. BUG=skia:4855, 581389 GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1637443003 NOTREECHECKS=true NOTRY=true NOPRESUBMIT=true TBR=robertphillips@google.com Committed: https://skia.googlesource.com/skia/+/109a6d5c08c078a110812628ea35aa2ca85c3489

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -6 lines) Patch
M gm/imagefiltersgraph.cpp View 3 chunks +36 lines, -1 line 0 comments Download
M src/core/SkImageFilter.cpp View 3 chunks +3 lines, -5 lines 0 comments Download

Messages

Total messages: 6 (4 generated)
Stephen White
Committed patchset #1 (id:1) manually as 109a6d5c08c078a110812628ea35aa2ca85c3489 (presubmit successful).
4 years, 10 months ago (2016-01-29 14:08:53 UTC) #5
robertphillips
4 years, 10 months ago (2016-01-29 17:34:23 UTC) #6
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698