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

Issue 1408003007: Refactor SkBlurImageFilter_Opts.h. (Closed)

Created:
5 years, 1 month ago by Stephen White
Modified:
5 years, 1 month ago
Reviewers:
mtklein, robertphillips
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Refactor SkBlurImageFilter_Opts.h. Refactor box_blur() into a single driver function which SSE*, NEON and generic code paths can use. I've used macros to do this in order to keep debug performance reasonable, but it's fairly ugly. I'm open to other suggestions. BUG=skia: CQ_EXTRA_TRYBOTS=client.skia:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD-Trybot Committed: https://skia.googlesource.com/skia/+/963037c1214029dde691b89738be8212a5b22cdf

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 4

Patch Set 6 : Fix typo #

Patch Set 7 : Changes per review #

Total comments: 5

Patch Set 8 : Win32 fix #

Patch Set 9 : Remove prefetch specialization (use SK_PREFETCH everywhere) #

Patch Set 10 : Put back the reinterpret_cast<> to appease Windows _mm_prefetch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -168 lines) Patch
M src/opts/SkBlurImageFilter_opts.h View 1 2 3 4 5 6 7 8 9 4 chunks +97 lines, -168 lines 0 comments Download

Messages

Total messages: 28 (11 generated)
Stephen White
mtklein@: robertphillips@: PTAL. Thanks!
5 years, 1 month ago (2015-10-27 19:19:23 UTC) #4
mtklein
I am a fan. lgtm as it stands, with some suggestions. https://codereview.chromium.org/1408003007/diff/80001/src/opts/SkBlurImageFilter_opts.h File src/opts/SkBlurImageFilter_opts.h (right): ...
5 years, 1 month ago (2015-10-27 19:35:03 UTC) #5
Stephen White
https://codereview.chromium.org/1408003007/diff/80001/src/opts/SkBlurImageFilter_opts.h File src/opts/SkBlurImageFilter_opts.h (right): https://codereview.chromium.org/1408003007/diff/80001/src/opts/SkBlurImageFilter_opts.h#newcode21 src/opts/SkBlurImageFilter_opts.h:21: static auto expand = [](int p) { On 2015/10/27 ...
5 years, 1 month ago (2015-10-27 19:47:21 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1408003007/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1408003007/120001
5 years, 1 month ago (2015-10-27 19:48:08 UTC) #8
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Win-MSVC-x86-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Win-MSVC-x86-Debug-Trybot/builds/3914) Build-Win-MSVC-x86_64-Debug-Trybot on ...
5 years, 1 month ago (2015-10-27 19:50:10 UTC) #10
mtklein
On 2015/10/27 19:47:21, Stephen White wrote: > https://codereview.chromium.org/1408003007/diff/80001/src/opts/SkBlurImageFilter_opts.h > File src/opts/SkBlurImageFilter_opts.h (right): > > https://codereview.chromium.org/1408003007/diff/80001/src/opts/SkBlurImageFilter_opts.h#newcode21 ...
5 years, 1 month ago (2015-10-27 19:55:34 UTC) #11
mtklein
https://codereview.chromium.org/1408003007/diff/120001/src/opts/SkBlurImageFilter_opts.h File src/opts/SkBlurImageFilter_opts.h (right): https://codereview.chromium.org/1408003007/diff/120001/src/opts/SkBlurImageFilter_opts.h#newcode48 src/opts/SkBlurImageFilter_opts.h:48: static inline __m128i _mm_mullo_epi32(__m128i a, __m128i b) { Annoyingly ...
5 years, 1 month ago (2015-10-27 20:24:34 UTC) #12
mtklein
5 years, 1 month ago (2015-10-27 20:24:36 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1408003007/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1408003007/160001
5 years, 1 month ago (2015-10-27 21:12:13 UTC) #15
Stephen White
https://codereview.chromium.org/1408003007/diff/120001/src/opts/SkBlurImageFilter_opts.h File src/opts/SkBlurImageFilter_opts.h (right): https://codereview.chromium.org/1408003007/diff/120001/src/opts/SkBlurImageFilter_opts.h#newcode48 src/opts/SkBlurImageFilter_opts.h:48: static inline __m128i _mm_mullo_epi32(__m128i a, __m128i b) { On ...
5 years, 1 month ago (2015-10-27 21:12:16 UTC) #16
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Win-MSVC-x86_64-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Win-MSVC-x86_64-Debug-Trybot/builds/3977)
5 years, 1 month ago (2015-10-27 21:14:04 UTC) #18
mtklein
https://codereview.chromium.org/1408003007/diff/120001/src/opts/SkBlurImageFilter_opts.h File src/opts/SkBlurImageFilter_opts.h (right): https://codereview.chromium.org/1408003007/diff/120001/src/opts/SkBlurImageFilter_opts.h#newcode65 src/opts/SkBlurImageFilter_opts.h:65: // TODO(mtklein): make SK_PREFETCH work with MSVC, use that ...
5 years, 1 month ago (2015-10-27 21:15:12 UTC) #19
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1408003007/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1408003007/180001
5 years, 1 month ago (2015-10-27 21:17:52 UTC) #21
Stephen White
On 2015/10/27 21:15:12, mtklein wrote: > https://codereview.chromium.org/1408003007/diff/120001/src/opts/SkBlurImageFilter_opts.h > File src/opts/SkBlurImageFilter_opts.h (right): > > https://codereview.chromium.org/1408003007/diff/120001/src/opts/SkBlurImageFilter_opts.h#newcode65 > ...
5 years, 1 month ago (2015-10-27 21:18:18 UTC) #22
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 1 month ago (2015-10-27 21:32:22 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1408003007/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1408003007/180001
5 years, 1 month ago (2015-10-27 21:38:56 UTC) #27
commit-bot: I haz the power
5 years, 1 month ago (2015-10-27 21:39:34 UTC) #28
Message was sent while issue was closed.
Committed patchset #10 (id:180001) as
https://skia.googlesource.com/skia/+/963037c1214029dde691b89738be8212a5b22cdf

Powered by Google App Engine
This is Rietveld 408576698