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

Issue 1588633002: Fix SkXfermodeImageFilter GPU fast path for differing sizes. (Closed)

Created:
4 years, 11 months ago by Stephen White
Modified:
4 years, 11 months ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Fix SkXfermodeImageFilter GPU fast path for differing sizes. The GPU fast path was not doing the correct thing for input bitmaps of differing sizes. This change brings the fast path in line with the slow path: use the union of foreground and background bounds as bounds, offset the draw context by the bounds translation, and translate the foreground and background independently by their respective offsets. Finally, we add a texture domain for the background fragment processor, since we may access texels outside its domain. Note: this adds two new test cases to the xfermodeimagefilter GM, so those will need to be rebaselined. BUG=568196 GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1588633002 Committed: https://skia.googlesource.com/skia/+/06d54ad09a03edd62d597b2ba67ad3c05944fd92

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix formatting #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -19 lines) Patch
M gm/xfermodeimagefilter.cpp View 1 2 chunks +23 lines, -1 line 0 comments Download
M src/effects/SkXfermodeImageFilter.cpp View 3 chunks +29 lines, -18 lines 0 comments Download

Messages

Total messages: 18 (11 generated)
Stephen White
Rob: PTAL. Thanks!
4 years, 11 months ago (2016-01-13 18:55:49 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1588633002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1588633002/1
4 years, 11 months ago (2016-01-13 18:56:03 UTC) #7
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-13 19:09:34 UTC) #9
robertphillips
lgtm. Yeah - that method surprised me when I was gpu-ifying it. https://codereview.chromium.org/1588633002/diff/1/gm/xfermodeimagefilter.cpp File gm/xfermodeimagefilter.cpp ...
4 years, 11 months ago (2016-01-13 20:13:15 UTC) #12
Stephen White
https://codereview.chromium.org/1588633002/diff/1/gm/xfermodeimagefilter.cpp File gm/xfermodeimagefilter.cpp (right): https://codereview.chromium.org/1588633002/diff/1/gm/xfermodeimagefilter.cpp#newcode174 gm/xfermodeimagefilter.cpp:174: SkImageFilter::CropRect cropRect(SkRect::MakeXYWH(10, 10, 60, 60)); On 2016/01/13 20:13:15, robertphillips ...
4 years, 11 months ago (2016-01-13 21:32:31 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1588633002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1588633002/20001
4 years, 11 months ago (2016-01-13 21:32:46 UTC) #16
commit-bot: I haz the power
4 years, 11 months ago (2016-01-13 21:49:18 UTC) #18
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://skia.googlesource.com/skia/+/06d54ad09a03edd62d597b2ba67ad3c05944fd92

Powered by Google App Engine
This is Rietveld 408576698