Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Unified Diff: include/core/SkSwizzle.h

Issue 1822363002: Publicly expose one accelerated swizzle. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/core/SkSwizzle.cpp » ('j') | src/core/SkSwizzle.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | src/core/SkSwizzle.cpp » ('j') | src/core/SkSwizzle.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698