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

Unified Diff: src/core/SkPM4fPriv.h

Issue 1869613003: add header guard to SkPM4fPriv.h to prevent accidental multiple inclusion (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Created 4 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkPM4fPriv.h
diff --git a/src/core/SkPM4fPriv.h b/src/core/SkPM4fPriv.h
index 0326eaf33c516bb343995a73673678039766a799..48fdde7acd0df0ad178f7d5062de751e0452d47f 100644
--- a/src/core/SkPM4fPriv.h
+++ b/src/core/SkPM4fPriv.h
@@ -5,6 +5,9 @@
* found in the LICENSE file.
*/
+#ifndef SkPM4fPriv_DEFINED
+#define SkPM4fPriv_DEFINED
+
#include "SkColorPriv.h"
#include "SkPM4f.h"
@@ -56,3 +59,5 @@ static inline uint32_t Sk4f_toL32(const Sk4f& x4) {
static inline uint32_t Sk4f_toS32(const Sk4f& x4) {
return to_4b(linear_to_srgb(x4) * Sk4f(255) + Sk4f(0.5f));
}
+
+#endif
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698