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

Unified Diff: tests/SkNxTest.cpp

Issue 1526523003: Unify some SkNx code (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: typo Created 5 years 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/opts/SkXfermode_opts.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/SkNxTest.cpp
diff --git a/tests/SkNxTest.cpp b/tests/SkNxTest.cpp
index b3e03d0a9b6a7674c564cb55d802cf88b90e00f1..754e9800b12963bbebf04de4239f985426cc8502 100644
--- a/tests/SkNxTest.cpp
+++ b/tests/SkNxTest.cpp
@@ -207,21 +207,6 @@ DEF_TEST(Sk4px_widening, r) {
REPORTER_ASSERT(r, 0 == memcmp(&wideLoHi, &wideLoHiAlt, sizeof(wideLoHi)));
}
-DEF_TEST(Sk4f_toBytes, r) {
- uint8_t bytes[4];
-
- // toBytes truncates, not rounds.
- Sk4f(0.7f).toBytes(bytes);
- REPORTER_ASSERT(r, bytes[0] == 0);
-
- // Clamping edge cases.
- Sk4f(-2.0f, -0.7f, 255.9f, 256.0f).toBytes(bytes);
- REPORTER_ASSERT(r, bytes[0] == 0);
- REPORTER_ASSERT(r, bytes[1] == 0);
- REPORTER_ASSERT(r, bytes[2] == 255);
- REPORTER_ASSERT(r, bytes[3] == 255);
-}
-
DEF_TEST(SkNx_cast, r) {
Sk4f fs(-1.7f, -1.4f, 0.5f, 1.9f);
Sk4i is = SkNx_cast<int>(fs);
« no previous file with comments | « src/opts/SkXfermode_opts.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698