Fix MSAN error in test
authorMatt Sarett <msarett@google.com>
Wed, 5 Apr 2017 21:31:07 +0000 (17:31 -0400)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Wed, 5 Apr 2017 22:08:35 +0000 (22:08 +0000)
Bug: skia:
Change-Id: I27afd02b3383e259101a856630d04566fdf7a994
Reviewed-on: https://skia-review.googlesource.com/11407
Reviewed-by: Matt Sarett <msarett@google.com>
Reviewed-by: Jim Van Verth <jvanverth@google.com>
Commit-Queue: Matt Sarett <msarett@google.com>

tests/BitmapCopyTest.cpp

index 71b9a606559e8021c5526acdbcf0b341b081cca9..5936b998c945758ddd9280d1fdb49bd53e3b530c 100644 (file)
@@ -659,7 +659,7 @@ DEF_TEST(BitmapReadPixels, reporter) {
 DEF_TEST(BitmapCopy_ColorSpaceMatch, r) {
     // We should support matching color spaces, even if they are parametric.
     SkColorSpaceTransferFn fn;
-    fn.fA = 1.f; fn.fB = 0.f; fn.fC = 0.f; fn.fD = 0.f; fn.fF = 0.f; fn.fG = 1.8f;
+    fn.fA = 1.f; fn.fB = 0.f; fn.fC = 0.f; fn.fD = 0.f; fn.fE = 0.f; fn.fF = 0.f; fn.fG = 1.8f;
     sk_sp<SkColorSpace> cs = SkColorSpace::MakeRGB(fn, SkColorSpace::kRec2020_Gamut);
 
     SkImageInfo info = SkImageInfo::MakeN32Premul(1, 1, cs);