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

Unified Diff: src/core/SkGeometry.cpp

Issue 1167153002: Remove overly-promiscuous SkNx syntax sugar. (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: update test Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « bench/PMFloatBench.cpp ('k') | src/core/SkNx.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkGeometry.cpp
diff --git a/src/core/SkGeometry.cpp b/src/core/SkGeometry.cpp
index 2cda344a5d91f62556e035c6ec6212e9be105987..6afd9d7ffb0ed1478b6afd0062a76ce93f2db02a 100644
--- a/src/core/SkGeometry.cpp
+++ b/src/core/SkGeometry.cpp
@@ -1284,7 +1284,7 @@ SkPoint SkConic::evalAt(SkScalar t) const {
Sk2s numer = quad_poly_eval(A, B, C, tt);
B = times_2(ww - one);
- A = -B;
+ A = Sk2s(0)-B;
Sk2s denom = quad_poly_eval(A, B, one, tt);
return to_point(numer / denom);
« no previous file with comments | « bench/PMFloatBench.cpp ('k') | src/core/SkNx.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698