OLD | NEW |
---|---|
(Empty) | |
1 /* | |
2 * Copyright 2016 Google Inc. | |
3 * | |
4 * Use of this source code is governed by a BSD-style license that can be | |
5 * found in the LICENSE file. | |
6 */ | |
7 | |
8 #ifndef SkSwizzle_DEFINED | |
9 #define SkSwizzle_DEFINED | |
10 | |
11 /** Swizzles byte order of |count| 32-bit pixels. */ | |
12 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.
| |
13 | |
14 #endif | |
OLD | NEW |