Index: include/core/SkSwizzle.h |
diff --git a/include/core/SkSwizzle.h b/include/core/SkSwizzle.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..1969ce767350903d74e95b79817c5fed95d0e797 |
--- /dev/null |
+++ b/include/core/SkSwizzle.h |
@@ -0,0 +1,14 @@ |
+/* |
+ * Copyright 2016 Google Inc. |
+ * |
+ * Use of this source code is governed by a BSD-style license that can be |
+ * found in the LICENSE file. |
+ */ |
+ |
+#ifndef SkSwizzle_DEFINED |
+#define SkSwizzle_DEFINED |
+ |
+/** Swizzles byte order of |count| 32-bit pixels. */ |
+void SkSwizzleRGBAToBGRA(uint32_t* src, void* dest, int count); |
mtklein
2016/03/23 17:02:34
Let's write (uint32_t* dest, const uint32_t* src,
reed1
2016/03/23 17:03:23
// Swap the R and B bytes for each pixel/int32
Sh
tomhudson
2016/03/23 17:25:50
Done.
tomhudson
2016/03/23 17:25:50
Done.
|
+ |
+#endif |