b0245494c6
The new test files are intended to be identical to the unit tests in every meaningful way. (Comments and formatting are not preserved exactly.) In cases where a unit-test method contained more than one test, multiple test files were created; in these cases, new names were invented to match the apparent intent of each invocation. Followup CLs will continue to migrate additional tests. Change-Id: I785c6761ba7ee2b25b5ddc0108321734be23b77c Bug: skia:10694 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/316678 Commit-Queue: John Stiles <johnstiles@google.com> Reviewed-by: Ethan Nicholas <ethannicholas@google.com> Auto-Submit: John Stiles <johnstiles@google.com>
15 lines
484 B
Plaintext
15 lines
484 B
Plaintext
uniform float4x4 colorXform;
|
|
uniform sampler2D sampler;
|
|
|
|
void main() {
|
|
float4 tmpColor;
|
|
sk_FragColor =
|
|
half4(1.0) *
|
|
(tmpColor = sample(sampler, float2(1)),
|
|
half4(colorXform != float4x4(1.0)
|
|
? float4(clamp((float4x4(colorXform) * float4(tmpColor.xyz, 1.0)).xyz,
|
|
0.0, tmpColor.w),
|
|
tmpColor.w)
|
|
: tmpColor));
|
|
}
|