Fix MSAN error in test

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>
This commit is contained in:
Matt Sarett 2017-04-05 17:31:07 -04:00 committed by Skia Commit-Bot
parent e87d7781db
commit 1a26ba9def

View 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);