Index: src/gpu/effects/GrYUVEffect.cpp |
diff --git a/src/gpu/effects/GrYUVEffect.cpp b/src/gpu/effects/GrYUVEffect.cpp |
index 7f959306f4a836ffa3ccdf59b0f896cdb638f54d..5b04f212355d27ddc55a4259287ce2341dd5cdd0 100644 |
--- a/src/gpu/effects/GrYUVEffect.cpp |
+++ b/src/gpu/effects/GrYUVEffect.cpp |
@@ -108,17 +108,20 @@ public: |
kMat44f_GrSLType, kDefault_GrSLPrecision, |
"ColorSpaceMatrix", &colorSpaceMatrix); |
fragBuilder->codeAppendf("%s = vec4(", args.fOutputColor); |
- fragBuilder->appendTextureLookup(args.fTexSamplers[0], args.fCoords[0].c_str(), |
- args.fCoords[0].getType()); |
+ fragBuilder->appendTextureLookup(args.fTexSamplers[0], |
+ args.fTransformedCoords[0].c_str(), |
+ args.fTransformedCoords[0].getType()); |
fragBuilder->codeAppend(".r,"); |
- fragBuilder->appendTextureLookup(args.fTexSamplers[1], args.fCoords[1].c_str(), |
- args.fCoords[1].getType()); |
+ fragBuilder->appendTextureLookup(args.fTexSamplers[1], |
+ args.fTransformedCoords[1].c_str(), |
+ args.fTransformedCoords[1].getType()); |
if (effect.fNV12) { |
fragBuilder->codeAppendf(".rg,"); |
} else { |
fragBuilder->codeAppend(".r,"); |
- fragBuilder->appendTextureLookup(args.fTexSamplers[2], args.fCoords[2].c_str(), |
- args.fCoords[2].getType()); |
+ fragBuilder->appendTextureLookup(args.fTexSamplers[2], |
+ args.fTransformedCoords[2].c_str(), |
+ args.fTransformedCoords[2].getType()); |
fragBuilder->codeAppendf(".g,"); |
} |
fragBuilder->codeAppendf("1.0) * %s;", colorSpaceMatrix); |