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

Unified Diff: src/core/SkSwizzle.cpp

Issue 1822363002: Publicly expose one accelerated swizzle. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: mtklein second review 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 | « include/core/SkSwizzle.h ('k') | tests/SwizzlerTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkSwizzle.cpp
diff --git a/src/core/SkSwizzle.cpp b/src/core/SkSwizzle.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..9c1971817bc78ca7276c82199dc64af0d0cadfaa
--- /dev/null
+++ b/src/core/SkSwizzle.cpp
@@ -0,0 +1,16 @@
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#include "SkSwizzle.h"
+
+#include "SkOpts.h"
+
+void SkSwapRB(uint32_t* dest, const uint32_t* src, int count) {
+ SkOpts::RGBA_to_BGRA(dest, src, count);
+}
+
+
« no previous file with comments | « include/core/SkSwizzle.h ('k') | tests/SwizzlerTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698