aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar Chris Dalton <csmartdalton@google.com>2018-04-11 14:01:04 -0600
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-04-12 14:49:00 +0000
commit21f6437764253c304c839409ea7883ad56cfcd63 (patch)
tree5e4e4956932badfc1aa683b3fe35ef7a745d6430 /tests
parent516c29296744062ae69ce0c501d66f2707761360 (diff)
Implement Sk2f Load2
Bug: skia: Change-Id: I7d37a76bcb9df9c5a1c22eb1b0277387816df7bb Reviewed-on: https://skia-review.googlesource.com/120602 Reviewed-by: Mike Klein <mtklein@google.com> Commit-Queue: Chris Dalton <csmartdalton@google.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/SkNxTest.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/SkNxTest.cpp b/tests/SkNxTest.cpp
index c82f39d516..bcf2a71658 100644
--- a/tests/SkNxTest.cpp
+++ b/tests/SkNxTest.cpp
@@ -424,6 +424,19 @@ DEF_TEST(Sk4f_Load2, r) {
REPORTER_ASSERT(r, y[3] == 7);
}
+DEF_TEST(Sk2f_Load2, r) {
+ float xy[4] = { 0,1,2,3 };
+
+ Sk2f x,y;
+ Sk2f::Load2(xy, &x,&y);
+
+ REPORTER_ASSERT(r, x[0] == 0);
+ REPORTER_ASSERT(r, x[1] == 2);
+
+ REPORTER_ASSERT(r, y[0] == 1);
+ REPORTER_ASSERT(r, y[1] == 3);
+}
+
DEF_TEST(Sk2f_Store2, r) {
Sk2f p0{0, 2};
Sk2f p1{1, 3};