diff options
author | Ethan Nicholas <ethannicholas@google.com> | 2017-05-08 09:36:08 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-05-08 16:08:44 +0000 |
commit | 2983f4022d756def4f93579ee519cd31c8f24d61 (patch) | |
tree | 60b9bc416882a8b2b2d5826d5e6ad8c59e8c7901 /src/gpu/effects/GrBicubicEffect.cpp | |
parent | 0562eb9c6c98f07732ca96a1dd4e986f1ca089b8 (diff) |
Re-land of "eliminated GrGLSLExpr".
This change is exactly the same as the last time it was landed; I believe the
underlying optimizer bug that was causing this to cause problems has been
fixed by a prior CL.
Bug: skia:
Change-Id: I5436422f094ea758caa3cd69e9338db31b1f93fa
Reviewed-on: https://skia-review.googlesource.com/15768
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Diffstat (limited to 'src/gpu/effects/GrBicubicEffect.cpp')
-rw-r--r-- | src/gpu/effects/GrBicubicEffect.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gpu/effects/GrBicubicEffect.cpp b/src/gpu/effects/GrBicubicEffect.cpp index c60400e383..70a00965af 100644 --- a/src/gpu/effects/GrBicubicEffect.cpp +++ b/src/gpu/effects/GrBicubicEffect.cpp @@ -112,9 +112,8 @@ void GrGLBicubicEffect::emitCode(EmitArgs& args) { fragBuilder->appendColorGamutXform(&xformedColor, bicubicColor.c_str(), &fColorSpaceHelper); bicubicColor.swap(xformedColor); } - fragBuilder->codeAppendf("%s = %s;", - args.fOutputColor, (GrGLSLExpr4(bicubicColor.c_str()) * - GrGLSLExpr4(args.fInputColor)).c_str()); + fragBuilder->codeAppendf("%s = %s * %s;", args.fOutputColor, bicubicColor.c_str(), + args.fInputColor); } void GrGLBicubicEffect::onSetData(const GrGLSLProgramDataManager& pdman, |