aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2015-06-10 08:57:28 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-06-10 08:57:28 -0700
commitf2fe0e03205c4d7f70496ec8c6bea9a82ae88329 (patch)
tree9b7eeff3cef8650aa31bd54f436c25494803e0e9 /tests
parent55812362f1df3c1f7341f687d5bab0adab8ac954 (diff)
Remove overly-promiscuous SkNx syntax sugar.
I haven't figured out a pithy way to have these apply to only classes originating from SkNx, so let's just remove them. There aren't too many use cases, and it's not really any less readable without them. Semantically, this is a no-op. BUG=skia: Review URL: https://codereview.chromium.org/1167153002
Diffstat (limited to 'tests')
-rw-r--r--tests/SkNxTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/SkNxTest.cpp b/tests/SkNxTest.cpp
index f8801500db..2463b46f08 100644
--- a/tests/SkNxTest.cpp
+++ b/tests/SkNxTest.cpp
@@ -46,7 +46,7 @@ static void test_Nf(skiatest::Reporter* r) {
assert_eq(a*b-b, 6, 12, 20, 30);
assert_eq((a*b).sqrt(), 3, 4, 5, 6);
assert_eq(a/b, 1, 1, 1, 1);
- assert_eq(-a, -3, -4, -5, -6);
+ assert_eq(SkNf<N,T>(0)-a, -3, -4, -5, -6);
SkNf<N,T> fours(4);