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

Unified Diff: tests/PMFloatTest.cpp

Issue 1026403002: Go back to storeAligned / LoadAligned for SkPMFloat <->Sk4f. (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Created 5 years, 9 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/SkPMFloat.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/PMFloatTest.cpp
diff --git a/tests/PMFloatTest.cpp b/tests/PMFloatTest.cpp
index 5b53fc659f6f937958a066b3d31b91ea3c7631e2..b1a4d045b493a793bf6d8aeeef7858f794a8fc35 100644
--- a/tests/PMFloatTest.cpp
+++ b/tests/PMFloatTest.cpp
@@ -24,12 +24,7 @@ DEF_TEST(SkPMFloat, r) {
// Test SkPMFloat <-> Sk4f conversion.
Sk4f fs = clamped;
-#if defined(SK_CPU_ARM64) && defined(SK_RELEASE) // skia:3570
- SkPMFloat scaled;
- scaled = fs * Sk4f(0.25f);
-#else
SkPMFloat scaled = fs * Sk4f(0.25f);
-#endif
REPORTER_ASSERT(r, SkScalarNearlyEqual(63.75f, scaled.a()));
REPORTER_ASSERT(r, SkScalarNearlyEqual(38.25f, scaled.r()));
REPORTER_ASSERT(r, SkScalarNearlyEqual( 0.25f, scaled.g()));
« no previous file with comments | « src/core/SkPMFloat.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698