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

Unified Diff: src/opts/SkOpts_sse41.cpp

Issue 1820313002: Port S32A_opaque blit row to SkOpts. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fmt 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 | « src/opts/SkOpts_neon.cpp ('k') | src/opts/opts_check_x86.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/opts/SkOpts_sse41.cpp
diff --git a/src/opts/SkOpts_sse41.cpp b/src/opts/SkOpts_sse41.cpp
index 7a76081e7a62cf33253f63d3ad655d65555cbbc8..34b078c2cafd4a3353d1d6ff0cbe634c099834b2 100644
--- a/src/opts/SkOpts_sse41.cpp
+++ b/src/opts/SkOpts_sse41.cpp
@@ -9,10 +9,11 @@
#define SK_OPTS_NS sk_sse41
#include "SkBlurImageFilter_opts.h"
+#include "SkBlitRow_opts.h"
#ifndef SK_SUPPORT_LEGACY_X86_BLITS
-namespace sk_sse41 {
+namespace sk_sse41_new {
djsollen 2016/03/22 17:12:42 why do we need to add _new?
mtklein 2016/03/22 17:39:28 This is sort of dumb. You know how the new SkBlit
// An SSE register holding at most 64 bits of useful data in the low lanes.
struct m64i {
@@ -211,7 +212,7 @@ static void blit_mask_d32_a8(SkPMColor* dst, size_t dstRB,
}
}
-} // namespace sk_sse41
+} // namespace sk_sse41_new
#endif
@@ -222,8 +223,9 @@ namespace SkOpts {
box_blur_yx = sk_sse41::box_blur_yx;
#ifndef SK_SUPPORT_LEGACY_X86_BLITS
- blit_row_color32 = sk_sse41::blit_row_color32;
- blit_mask_d32_a8 = sk_sse41::blit_mask_d32_a8;
+ blit_row_color32 = sk_sse41_new::blit_row_color32;
+ blit_mask_d32_a8 = sk_sse41_new::blit_mask_d32_a8;
#endif
+ blit_row_s32a_opaque = sk_sse41::blit_row_s32a_opaque;
}
}
« no previous file with comments | « src/opts/SkOpts_neon.cpp ('k') | src/opts/opts_check_x86.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698