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

Unified Diff: src/opts/SkPMFloat_neon.h

Issue 1214443002: Color dodge and burn with SkPMFloat. (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: alphas(). 41/39 + 231/241 Created 5 years, 6 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
Index: src/opts/SkPMFloat_neon.h
diff --git a/src/opts/SkPMFloat_neon.h b/src/opts/SkPMFloat_neon.h
index c8976860b1805ed29ad3b0592c3c123c916ee6a2..1f90ac8ea4097e1a5d6fca24c68c07fa35f9bc6d 100644
--- a/src/opts/SkPMFloat_neon.h
+++ b/src/opts/SkPMFloat_neon.h
@@ -27,4 +27,9 @@ inline SkPMColor SkPMFloat::round() const {
return c;
}
+inline Sk4f SkPMFloat::alphas() const {
+ static_assert(SK_A32_SHIFT == 24, "");
+ return vdupq_lane_f32(vget_high_f32(fVec), 1);
+}
+
} // namespace
« src/core/SkPMFloat.h ('K') | « src/opts/SkNx_sse.h ('k') | src/opts/SkPMFloat_sse.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698