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:
parent
e87d7781db
commit
1a26ba9def
@ -659,7 +659,7 @@ DEF_TEST(BitmapReadPixels, reporter) {
|
|||||||
DEF_TEST(BitmapCopy_ColorSpaceMatch, r) {
|
DEF_TEST(BitmapCopy_ColorSpaceMatch, r) {
|
||||||
// We should support matching color spaces, even if they are parametric.
|
// We should support matching color spaces, even if they are parametric.
|
||||||
SkColorSpaceTransferFn fn;
|
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);
|
sk_sp<SkColorSpace> cs = SkColorSpace::MakeRGB(fn, SkColorSpace::kRec2020_Gamut);
|
||||||
|
|
||||||
SkImageInfo info = SkImageInfo::MakeN32Premul(1, 1, cs);
|
SkImageInfo info = SkImageInfo::MakeN32Premul(1, 1, cs);
|
||||||
|
Loading…
Reference in New Issue
Block a user