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

Unified Diff: src/opts/SkBlitRow_opts_SSE2.cpp

Issue 1658913005: Add SkMSAN.h (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: spelling Created 4 years, 11 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/SkMSAN.h ('k') | src/opts/SkBlitRow_opts_SSE4.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/opts/SkBlitRow_opts_SSE2.cpp
diff --git a/src/opts/SkBlitRow_opts_SSE2.cpp b/src/opts/SkBlitRow_opts_SSE2.cpp
index c017f7e4b3d1496f950e00f738dc30588226ecf9..3ca9a957f6e90d228d848392af83ac9759b4e1f1 100644
--- a/src/opts/SkBlitRow_opts_SSE2.cpp
+++ b/src/opts/SkBlitRow_opts_SSE2.cpp
@@ -11,6 +11,7 @@
#include "SkColorPriv.h"
#include "SkColor_opts_SSE2.h"
#include "SkDither.h"
+#include "SkMSAN.h"
#include "SkUtils.h"
/* SSE2 version of S32_Blend_BlitRow32()
@@ -69,6 +70,8 @@ void S32_Blend_BlitRow32_SSE2(SkPMColor* SK_RESTRICT dst,
void S32A_Opaque_BlitRow32_SSE2(SkPMColor* SK_RESTRICT dst,
const SkPMColor* SK_RESTRICT src,
int count, U8CPU alpha) {
+ sk_msan_assert_initialized(src, src+count);
+
SkASSERT(alpha == 255);
if (count <= 0) {
return;
« no previous file with comments | « src/core/SkMSAN.h ('k') | src/opts/SkBlitRow_opts_SSE4.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698