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

Unified Diff: src/core/SkUtils.cpp

Issue 1256763003: Remove sk_memcpy32 (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 5 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 | « src/core/SkBlitRow_D32.cpp ('k') | src/opts/SkUtils_opts_SSE2.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkUtils.cpp
diff --git a/src/core/SkUtils.cpp b/src/core/SkUtils.cpp
index 33ea4db47c0bcfcdd0f49dab09c99e40cde2898c..afd523d369cf9bbe6e4883cd2409995af6fad4b7 100644
--- a/src/core/SkUtils.cpp
+++ b/src/core/SkUtils.cpp
@@ -109,10 +109,6 @@ static void sk_memset32_portable(uint32_t dst[], uint32_t value, int count) {
}
}
-static void sk_memcpy32_portable(uint32_t dst[], const uint32_t src[], int count) {
- memcpy(dst, src, count * sizeof(uint32_t));
-}
-
namespace {
// These three methods technically need external linkage to be passed as template parameters.
// Since they can't be static, we hide them in an anonymous namespace instead.
@@ -127,11 +123,6 @@ SkMemset32Proc choose_memset32() {
return proc ? proc : sk_memset32_portable;
}
-SkMemcpy32Proc choose_memcpy32() {
- SkMemcpy32Proc proc = SkMemcpy32GetPlatformProc();
- return proc ? proc : sk_memcpy32_portable;
-}
-
} // namespace
void sk_memset16_large(uint16_t dst[], uint16_t value, int count) {
@@ -144,11 +135,6 @@ void sk_memset32_large(uint32_t dst[], uint32_t value, int count) {
proc.get()(dst, value, count);
}
-void sk_memcpy32(uint32_t dst[], const uint32_t src[], int count) {
- SK_DECLARE_STATIC_LAZY_FN_PTR(SkMemcpy32Proc, proc, choose_memcpy32);
- proc.get()(dst, src, count);
-}
-
///////////////////////////////////////////////////////////////////////////////
/* 0xxxxxxx 1 total
« no previous file with comments | « src/core/SkBlitRow_D32.cpp ('k') | src/opts/SkUtils_opts_SSE2.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698