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

Unified Diff: src/opts/SkPMFloat_none.h

Issue 1286093004: Refactor to put SkXfermode_opts inside SK_OPTS_NS. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 4 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/opts/SkPMFloat_neon.h ('k') | src/opts/SkPMFloat_sse.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/opts/SkPMFloat_none.h
diff --git a/src/opts/SkPMFloat_none.h b/src/opts/SkPMFloat_none.h
index 518ad159ff833526bc12cb3fafb66128442a8ef1..ca98b1ab7e21792f341a52c96d588a076a5d3145 100644
--- a/src/opts/SkPMFloat_none.h
+++ b/src/opts/SkPMFloat_none.h
@@ -5,9 +5,7 @@
* found in the LICENSE file.
*/
-namespace { // See SkPMFloat.h
-
-inline SkPMFloat::SkPMFloat(SkPMColor c) {
+SK_ALWAYS_INLINE SkPMFloat::SkPMFloat(SkPMColor c) {
float inv255 = 1.0f/255;
*this = SkPMFloat::FromARGB(SkGetPackedA32(c) * inv255,
SkGetPackedR32(c) * inv255,
@@ -16,7 +14,7 @@ inline SkPMFloat::SkPMFloat(SkPMColor c) {
SkASSERT(this->isValid());
}
-inline SkPMColor SkPMFloat::round() const {
+SK_ALWAYS_INLINE SkPMColor SkPMFloat::round() const {
float a = this->a(),
r = this->r(),
g = this->g(),
@@ -30,8 +28,6 @@ inline SkPMColor SkPMFloat::round() const {
return c;
}
-inline Sk4f SkPMFloat::alphas() const {
+SK_ALWAYS_INLINE Sk4f SkPMFloat::alphas() const {
return Sk4f(this->a());
}
-
-} // namespace
« no previous file with comments | « src/opts/SkPMFloat_neon.h ('k') | src/opts/SkPMFloat_sse.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698