| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2016 Google Inc. | 2 * Copyright 2016 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #ifndef SkSwizzle_DEFINED | 8 #ifndef SkSwizzle_DEFINED |
| 9 #define SkSwizzle_DEFINED | 9 #define SkSwizzle_DEFINED |
| 10 | 10 |
| 11 #include "SkTypes.h" | 11 #include "SkTypes.h" |
| 12 | 12 |
| 13 /** | 13 /** |
| 14 Swizzles byte order of |count| 32-bit pixels, swapping R and B. | 14 Swizzles byte order of |count| 32-bit pixels, swapping R and B. |
| 15 (RGBA <-> BGRA) | 15 (RGBA <-> BGRA) |
| 16 */ | 16 */ |
| 17 void SkSwapRB(uint32_t* dest, const uint32_t* src, int count); | 17 SK_API void SkSwapRB(uint32_t* dest, const uint32_t* src, int count); |
| 18 | 18 |
| 19 #endif | 19 #endif |
| OLD | NEW |