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

Issue 1563183003: Refactor resize filter to go faster (Closed)

Created:
4 years, 11 months ago by caryclark
Modified:
4 years, 11 months ago
Reviewers:
mtklein, f(malita), reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Refactor resize filter to go faster Part of this CL improves the speed by using dynamic arrays more effectively. Part uses SIMD and more concise float expressions for speed. Some unused code was deleted. The latter changes are guarded by: SK_SUPPORT_LEGACY_BITMAP_FILTER until this lands and the corresponding layout changes in chrome can be relanded. With the legacy flag defined, no Skia or Chrome test results change. Without the flag defined in Skia, only 0.01% - 0.02% of the pixels change, and then by (1,1,1) in 8888. codereview.chromium.org/1583533002 adds the guard to Chrome. R=reed@google.com BUG=skia:2261 GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1563183003 Committed: https://skia.googlesource.com/skia/+/368342ccb5b88568974f66d1a36bbec667efcc4e

Patch Set 1 #

Patch Set 2 : wip; 1st cut at sk4f #

Patch Set 3 : wip; use simd loop #

Patch Set 4 : wip; make mitchell filter use constants #

Patch Set 5 : wip; speed up AddFilter #

Patch Set 6 : use stack for temporary arrays #

Patch Set 7 : wip; add legacy codepath back and test #

Patch Set 8 : fix bugs in legacy #

Patch Set 9 : remove define to test legacy #

Total comments: 2

Patch Set 10 : make mitchell filter locals conform to skia style #

Unified diffs Side-by-side diffs Delta from patch set Stats (+181 lines, -75 lines) Patch
M src/core/SkBitmapFilter.h View 1 2 3 4 5 6 7 8 9 3 chunks +92 lines, -3 lines 0 comments Download
M src/core/SkBitmapFilter.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkBitmapScaler.cpp View 1 2 3 4 5 6 7 4 chunks +76 lines, -37 lines 0 comments Download
M src/core/SkConvolver.h View 1 2 3 4 5 chunks +9 lines, -12 lines 0 comments Download
M src/core/SkConvolver.cpp View 1 2 3 4 4 chunks +3 lines, -22 lines 0 comments Download

Messages

Total messages: 49 (23 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1563183003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1563183003/1
4 years, 11 months ago (2016-01-07 18:12:21 UTC) #3
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-07 18:38:29 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/1563183003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1563183003/40001
4 years, 11 months ago (2016-01-08 15:22:37 UTC) #7
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-08 15:42:21 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1563183003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1563183003/60001
4 years, 11 months ago (2016-01-08 15:51:20 UTC) #11
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-08 16:11:06 UTC) #13
caryclark
Please take a look This causes a max of 0.02 (1,1,1) diff on Gold; it ...
4 years, 11 months ago (2016-01-08 16:24:30 UTC) #15
mtklein
Does the bench you're running not match the screw case in the bug, or is ...
4 years, 11 months ago (2016-01-08 16:30:21 UTC) #16
tomhudson
On 2016/01/08 16:30:21, mtklein wrote: > Does the bench you're running not match the screw ...
4 years, 11 months ago (2016-01-08 21:18:32 UTC) #17
tomhudson
On 2016/01/08 21:18:32, tomhudson wrote: > And although after Cary's stepping through the code I ...
4 years, 11 months ago (2016-01-08 21:40:22 UTC) #18
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1563183003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1563183003/80001
4 years, 11 months ago (2016-01-11 22:06:28 UTC) #20
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-11 22:19:40 UTC) #22
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1563183003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1563183003/100001
4 years, 11 months ago (2016-01-12 12:57:45 UTC) #24
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-12 13:09:59 UTC) #26
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1563183003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1563183003/120001
4 years, 11 months ago (2016-01-12 16:06:36 UTC) #28
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot/builds/5199)
4 years, 11 months ago (2016-01-12 16:10:27 UTC) #30
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1563183003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1563183003/140001
4 years, 11 months ago (2016-01-12 17:06:18 UTC) #32
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-12 17:16:57 UTC) #34
caryclark
4 years, 11 months ago (2016-01-12 18:10:54 UTC) #37
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1563183003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1563183003/160001
4 years, 11 months ago (2016-01-12 18:11:04 UTC) #38
caryclark
(commit ready)
4 years, 11 months ago (2016-01-12 18:13:26 UTC) #39
reed1
lgtm w/ question about static-vs-method https://codereview.chromium.org/1563183003/diff/160001/src/core/SkBitmapFilter.h File src/core/SkBitmapFilter.h (right): https://codereview.chromium.org/1563183003/diff/160001/src/core/SkBitmapFilter.h#newcode144 src/core/SkBitmapFilter.h:144: Sk4f evalcore_n(const Sk4f& val) ...
4 years, 11 months ago (2016-01-12 18:21:04 UTC) #41
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-12 18:22:18 UTC) #43
caryclark
https://codereview.chromium.org/1563183003/diff/160001/src/core/SkBitmapFilter.h File src/core/SkBitmapFilter.h (right): https://codereview.chromium.org/1563183003/diff/160001/src/core/SkBitmapFilter.h#newcode144 src/core/SkBitmapFilter.h:144: Sk4f evalcore_n(const Sk4f& val) const { On 2016/01/12 18:21:04, ...
4 years, 11 months ago (2016-01-12 18:32:36 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1563183003/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1563183003/180001
4 years, 11 months ago (2016-01-12 18:32:57 UTC) #47
commit-bot: I haz the power
4 years, 11 months ago (2016-01-12 18:44:06 UTC) #49
Message was sent while issue was closed.
Committed patchset #10 (id:180001) as
https://skia.googlesource.com/skia/+/368342ccb5b88568974f66d1a36bbec667efcc4e

Powered by Google App Engine
This is Rietveld 408576698