aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/effects
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2018-04-27 17:38:06 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-04-30 17:21:33 +0000
commit7b9b326338543f1a4aaccb1819602d61314cc698 (patch)
tree3f2b25407ee6fc0cfadbfb2c0c74d3e172abf399 /src/gpu/effects
parent00d554b5b6d7dfebd30575a1852826a310697edb (diff)
memset arrays in TestForPreservingPMConversions in case of read pixels failure
Bug: chromium:837649 Change-Id: Iced3cef5af8745964323ef3fa8cc5ac9d184c3b4 Reviewed-on: https://skia-review.googlesource.com/124350 Reviewed-by: Robert Phillips <robertphillips@google.com> Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/effects')
-rw-r--r--src/gpu/effects/GrConfigConversionEffect.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gpu/effects/GrConfigConversionEffect.h b/src/gpu/effects/GrConfigConversionEffect.h
index 7ebbe73eb9..ed362ae753 100644
--- a/src/gpu/effects/GrConfigConversionEffect.h
+++ b/src/gpu/effects/GrConfigConversionEffect.h
@@ -41,6 +41,8 @@ public:
color[0] = SkTMin(x, y);
}
}
+ memset(firstRead, 0, kSize * kSize * sizeof(uint32_t));
+ memset(secondRead, 0, kSize * kSize * sizeof(uint32_t));
const SkImageInfo ii =
SkImageInfo::Make(kSize, kSize, kRGBA_8888_SkColorType, kPremul_SkAlphaType);