aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkGeometry.h
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2016-01-31 08:02:47 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-01-31 08:02:47 -0800
commit507ef6d68115ae9e6d884bb36436a1463523d893 (patch)
tree67a2aabdf43f8dab134b2f08240d511dd1113af1 /src/core/SkGeometry.h
parentb1c32b7bde01e74ea59a9c0182c47cef862ef1c5 (diff)
SkNx Load/store: take any pointer.
This means we can remove a lot of explicit casts in code that uses SkNx. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1650653002 CQ_EXTRA_TRYBOTS=client.skia:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD-Trybot Review URL: https://codereview.chromium.org/1650653002
Diffstat (limited to 'src/core/SkGeometry.h')
-rw-r--r--src/core/SkGeometry.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/SkGeometry.h b/src/core/SkGeometry.h
index 935967ea78..15f1e55195 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;
}