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

Issue 2145833002: Update SkOpts namespaces. (Closed)

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

Description

Update SkOpts namespaces. If we make sure all SkOpts functions are static, we can give the namespaces any name we like. This lets us drop the sk_ prefix and give a real indication of the default SIMD instruction set rather than just saying sk_default. Both of these changes help debugger, profiler, and crash report readability. Perhaps more importantly, keeping these functions static helps prevent accidentally linking in unused versions of functions, as you see here with sk_avx::srcover_srgb_srgb(). This requires we update SkBlend_opts tests and benches to call SkOpts functions through SkOpts rather than declaring the methods externally. In practice this drops testing of the SSE2 version on machines with SSE4. If we still really need to test/bench the compile time best SIMD level version of this method against the runtime detected best, we can include SkBlend_opts.h into the tests or benches directly, similar to what we do for the trivial, brute-force, or best non-SIMD versions. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2145833002 CQ_INCLUDE_TRYBOTS=client.skia:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD-Trybot Committed: https://skia.googlesource.com/skia/+/0358a6ac00497ecb9fa9412045560b7f33d3a9eb

Patch Set 1 #

Patch Set 2 : static, just in case #

Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -163 lines) Patch
M bench/SkBlend_optsBench.cpp View 5 chunks +7 lines, -41 lines 0 comments Download
M src/core/SkOpts.cpp View 2 chunks +53 lines, -44 lines 0 comments Download
M src/opts/SkBlend_opts.h View 3 chunks +3 lines, -3 lines 0 comments Download
M src/opts/SkBlurImageFilter_opts.h View 1 1 chunk +3 lines, -2 lines 0 comments Download
M src/opts/SkColorCubeFilter_opts.h View 1 chunk +7 lines, -7 lines 0 comments Download
M src/opts/SkOpts_avx.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M src/opts/SkOpts_sse41.cpp View 2 chunks +9 lines, -9 lines 0 comments Download
M src/opts/SkOpts_ssse3.cpp View 2 chunks +14 lines, -14 lines 0 comments Download
M tests/SkBlend_optsTest.cpp View 3 chunks +8 lines, -41 lines 0 comments Download

Messages

Total messages: 18 (14 generated)
mtklein_C
4 years, 5 months ago (2016-07-13 01:10:08 UTC) #11
herb_g
lgtm
4 years, 5 months ago (2016-07-13 14:38:07 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2145833002/20001
4 years, 5 months ago (2016-07-13 15:01:24 UTC) #16
commit-bot: I haz the power
4 years, 5 months ago (2016-07-13 15:02:24 UTC) #18
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://skia.googlesource.com/skia/+/0358a6ac00497ecb9fa9412045560b7f33d3a9eb

Powered by Google App Engine
This is Rietveld 408576698