diff options
author | 2016-03-23 10:51:20 -0700 | |
---|---|---|
committer | 2016-03-23 10:51:21 -0700 | |
commit | 734351d2555024a679c4e4f5e13e8be2329803d2 (patch) | |
tree | ab10f97e83b00faa543f7130e325fe0ee83a5181 /include/core/SkSwizzle.h | |
parent | 7dbd45d2c7427d2c679d6507435d2f0220bf64ef (diff) |
Publicly expose one accelerated swizzle.
SkOpts is intentionally internal, but we want to give Chrome access
to those pieces that would seriously benefit them.
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1822363002
Review URL: https://codereview.chromium.org/1822363002
Diffstat (limited to 'include/core/SkSwizzle.h')
-rw-r--r-- | include/core/SkSwizzle.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/core/SkSwizzle.h b/include/core/SkSwizzle.h new file mode 100644 index 0000000000..73e59e386a --- /dev/null +++ b/include/core/SkSwizzle.h @@ -0,0 +1,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 "SkTypes.h" + +/** + Swizzles byte order of |count| 32-bit pixels, swapping R and B. + (RGBA <-> BGRA) +*/ +void SkSwapRB(uint32_t* dest, const uint32_t* src, int count); + +#endif |