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

Unified Diff: src/core/SkGeometry.h

Issue 1650653002: SkNx Load/store: take any pointer. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: simplify call sites Created 4 years, 11 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 | « src/core/SkColor.cpp ('k') | src/core/SkGeometry.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkGeometry.h
diff --git a/src/core/SkGeometry.h b/src/core/SkGeometry.h
index 935967ea784ba2118f00d070cce05becc466dab1..15f1e55195a9888285b34dadcc717e1615d54f7a 100644
--- a/src/core/SkGeometry.h
+++ b/src/core/SkGeometry.h
@@ -12,12 +12,12 @@
#include "SkNx.h"
static inline Sk2s from_point(const SkPoint& point) {
- return Sk2s::Load(&point.fX);
+ return Sk2s::Load(&point);
}
static inline SkPoint to_point(const Sk2s& x) {
SkPoint point;
- x.store(&point.fX);
+ x.store(&point);
return point;
}
« no previous file with comments | « src/core/SkColor.cpp ('k') | src/core/SkGeometry.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698