aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Ethan Nicholas <ethannicholas@google.com>2017-12-22 11:00:58 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-12-22 16:21:45 +0000
commit92c7fa6b009b3ea4e93ca179153f837c2d9d7962 (patch)
treef771b5a092f4af93b002daa9c1d4345f5291eff5
parent60bb2d52d9af53c0408fbfd01059535aebef8bbe (diff)
fix usage of deprecated SkMatrix44 constructor
Bug: skia: Change-Id: I04acc1132df7c0357229af8583f9b2e8e2f02f3b Reviewed-on: https://skia-review.googlesource.com/89162 Reviewed-by: Ethan Nicholas <ethannicholas@google.com> Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
-rw-r--r--src/gpu/effects/GrYUVtoRGBEffect.cpp2
-rw-r--r--src/gpu/effects/GrYUVtoRGBEffect.fp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gpu/effects/GrYUVtoRGBEffect.cpp b/src/gpu/effects/GrYUVtoRGBEffect.cpp
index b1cd36f72b..5279890be3 100644
--- a/src/gpu/effects/GrYUVtoRGBEffect.cpp
+++ b/src/gpu/effects/GrYUVtoRGBEffect.cpp
@@ -46,7 +46,7 @@ std::unique_ptr<GrFragmentProcessor> GrYUVtoRGBEffect::Make(sk_sp<GrTextureProxy
(sizes[2].fWidth != sizes[0].fWidth) || (sizes[2].fHeight != sizes[0].fHeight))
? GrSamplerState::Filter::kBilerp
: GrSamplerState::Filter::kNearest;
- SkMatrix44 mat;
+ SkMatrix44 mat(SkMatrix44::kUninitialized_Constructor);
switch (colorSpace) {
case kJPEG_SkYUVColorSpace:
mat.setColMajorf(kJPEGConversionMatrix);
diff --git a/src/gpu/effects/GrYUVtoRGBEffect.fp b/src/gpu/effects/GrYUVtoRGBEffect.fp
index 999d95502d..0565b885d6 100644
--- a/src/gpu/effects/GrYUVtoRGBEffect.fp
+++ b/src/gpu/effects/GrYUVtoRGBEffect.fp
@@ -82,7 +82,7 @@ layout(key) in bool nv12;
(sizes[2].fHeight != sizes[0].fHeight)) ?
GrSamplerState::Filter::kBilerp :
GrSamplerState::Filter::kNearest;
- SkMatrix44 mat;
+ SkMatrix44 mat(SkMatrix44::kUninitialized_Constructor);
switch (colorSpace) {
case kJPEG_SkYUVColorSpace:
mat.setColMajorf(kJPEGConversionMatrix);