summaryrefslogtreecommitdiffstats
path: root/gfx/skia/skia/include/core/SkSwizzle.h
blob: 61e93b2da700b79bd866326f221cfa0c23ab6634 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
 * 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

#include "include/core/SkTypes.h"

/**
  Swizzles byte order of |count| 32-bit pixels, swapping R and B.
  (RGBA <-> BGRA)
*/
SK_API void SkSwapRB(uint32_t* dest, const uint32_t* src, int count);

#endif