aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2015-01-28 07:20:28 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-01-28 07:20:28 -0800
commit073720e8979f1ad0a28c6e277e73e09e1706e0d1 (patch)
tree3eef674cb52c1493c455b9eed3ddff270c533cd7 /src
parentc2893c5e3870d7e9a37ca146e7da88fba54977d5 (diff)
add a paranoid assert
NOTREECHECKS=true BUG=chromium:399842 Review URL: https://codereview.chromium.org/881253003
Diffstat (limited to 'src')
-rw-r--r--src/opts/SkBlitRow_opts_SSE4.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/opts/SkBlitRow_opts_SSE4.cpp b/src/opts/SkBlitRow_opts_SSE4.cpp
index fd837d54fe..ae92a77eb2 100644
--- a/src/opts/SkBlitRow_opts_SSE4.cpp
+++ b/src/opts/SkBlitRow_opts_SSE4.cpp
@@ -55,6 +55,7 @@ void S32A_Opaque_BlitRow32_SSE4(SkPMColor* SK_RESTRICT dst,
}
// Wrap up the last <= 15 pixels.
+ SkASSERT(count - (count16*16) <= 15);
for (int i = count16*16; i < count; i++) {
// This check is not really necessarily, but it prevents pointless autovectorization.
if (src[i] & 0xFF000000) {