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

Unified Diff: src/core/SkRect.cpp

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/SkNx.h ('k') | src/core/SkScan_Hairline.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkRect.cpp
diff --git a/src/core/SkRect.cpp b/src/core/SkRect.cpp
index 6c44ea2544ea3078ca6464f84dd142dcb1c6ec03..f2060f84414b0a53e7ba60494a13502fe45b054f 100644
--- a/src/core/SkRect.cpp
+++ b/src/core/SkRect.cpp
@@ -67,7 +67,7 @@ bool SkRect::setBoundsCheck(const SkPoint pts[], int count) {
pts += 1;
count -= 1;
} else {
- min = Sk4s::Load(&pts[0].fX);
+ min = Sk4s::Load(pts);
pts += 2;
count -= 2;
}
@@ -76,7 +76,7 @@ bool SkRect::setBoundsCheck(const SkPoint pts[], int count) {
count >>= 1;
for (int i = 0; i < count; ++i) {
- Sk4s xy = Sk4s::Load(&pts->fX);
+ Sk4s xy = Sk4s::Load(pts);
accum = accum * xy;
min = Sk4s::Min(min, xy);
max = Sk4s::Max(max, xy);
« no previous file with comments | « src/core/SkNx.h ('k') | src/core/SkScan_Hairline.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698