Make unpremul_float more discoverable.

Splitting its name in half makes it difficult to find when searching the
codebase, for almost no benefit.

Change-Id: I6f1558558bfc6801c19a12116324c35f42111442
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/359136
Auto-Submit: John Stiles <johnstiles@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
This commit is contained in:
John Stiles 2021-01-25 18:27:52 -05:00 committed by Skia Commit-Bot
parent bbc5288f2b
commit 98c990eba0

View File

@ -227,7 +227,7 @@ void GrGLSLShaderBuilder::appendColorGamutXform(SkString* out,
GrShaderVar("color", useFloat ? kFloat4_GrSLType : kHalf4_GrSLType)};
SkString body;
if (colorXformHelper->applyUnpremul()) {
body.appendf("color = unpremul%s(color);", useFloat ? "_float" : "");
body.appendf("color = %s(color);", useFloat ? "unpremul_float" : "unpremul");
}
if (colorXformHelper->applySrcTF()) {
body.appendf("color.r = %s(half(color.r));", srcTFFuncName.c_str());