Remove unused unpremul_float

Change-Id: I59821d748768d74b251d9339787f193c23e3d4dc
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/358526
Reviewed-by: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Auto-Submit: Ethan Nicholas <ethannicholas@google.com>
This commit is contained in:
Ethan Nicholas 2021-01-25 11:58:09 -05:00
parent f005c8a30b
commit e7ff4bc9b8
4 changed files with 277 additions and 331 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,4 @@
static uint8_t SKSL_INCLUDE_sksl_public[] = {40,2,
static uint8_t SKSL_INCLUDE_sksl_public[] = {25,2,
3,100,101,103,
5,102,108,111,97,116,
7,114,97,100,105,97,110,115,
@ -83,11 +83,10 @@ static uint8_t SKSL_INCLUDE_sksl_public[] = {40,2,
5,99,111,108,111,114,
5,104,97,108,102,52,
8,117,110,112,114,101,109,117,108,
14,117,110,112,114,101,109,117,108,95,102,108,111,97,116,
1,118,
1,107,
5,104,97,108,102,51,
42,164,1,
42,162,1,
46,1,0,
9,2,0,
43,2,0,6,0,3,
@ -1403,13 +1402,7 @@ static uint8_t SKSL_INCLUDE_sksl_public[] = {40,2,
43,176,1,2,2,3,
23,177,1,
9,8,2,1,175,1,
40,176,1,
46,178,1,
9,252,1,
40,13,0,3,
23,179,1,
9,17,2,1,178,1,
40,13,0,49,0,
40,176,1,48,0,
100,0,
45,0,
157,1,
@ -1458,7 +1451,6 @@ static uint8_t SKSL_INCLUDE_sksl_public[] = {40,2,
223,0,
35,0,
161,1,
163,1,
12,
22,3,0,
2,
@ -1583,11 +1575,11 @@ static uint8_t SKSL_INCLUDE_sksl_public[] = {40,2,
22,26,1,
2,
42,1,0,
46,180,1,
9,32,2,
46,178,1,
9,17,2,
40,2,0,2,1,0,
0,0,2,
47,180,1,
47,178,1,
40,2,0,0,
44,
1,
@ -1602,15 +1594,15 @@ static uint8_t SKSL_INCLUDE_sksl_public[] = {40,2,
33,57,
49,23,1,0,
34,
49,180,1,0,1,0,
49,178,1,0,1,0,
22,31,1,
2,
42,1,0,
46,181,1,
9,32,2,
46,179,1,
9,17,2,
40,5,0,2,1,0,
0,0,2,
47,181,1,
47,179,1,
40,5,0,0,
44,
1,
@ -1625,15 +1617,15 @@ static uint8_t SKSL_INCLUDE_sksl_public[] = {40,2,
33,57,
49,27,1,0,
34,
49,181,1,0,1,0,
49,179,1,0,1,0,
22,36,1,
2,
42,1,0,
46,182,1,
9,32,2,
46,180,1,
9,17,2,
40,9,0,2,1,0,
0,0,2,
47,182,1,
47,180,1,
40,9,0,0,
44,
1,
@ -1648,15 +1640,15 @@ static uint8_t SKSL_INCLUDE_sksl_public[] = {40,2,
33,57,
49,32,1,0,
34,
49,182,1,0,1,0,
49,180,1,0,1,0,
22,41,1,
2,
42,1,0,
46,183,1,
9,32,2,
46,181,1,
9,17,2,
40,13,0,2,1,0,
0,0,2,
47,183,1,
47,181,1,
40,13,0,0,
44,
1,
@ -1671,7 +1663,7 @@ static uint8_t SKSL_INCLUDE_sksl_public[] = {40,2,
33,57,
49,37,1,0,
34,
49,183,1,0,1,0,
49,181,1,0,1,0,
22,44,1,
2,
42,0,0,0,0,1,
@ -1747,15 +1739,15 @@ static uint8_t SKSL_INCLUDE_sksl_public[] = {40,2,
22,60,1,
2,
42,2,0,
46,184,1,
9,34,2,
46,182,1,
9,19,2,
40,2,0,2,
46,185,1,
9,32,2,
46,183,1,
9,17,2,
40,2,0,2,2,0,
0,0,
1,0,3,
47,184,1,
47,182,1,
40,2,0,0,
1,
19,
@ -1781,11 +1773,11 @@ static uint8_t SKSL_INCLUDE_sksl_public[] = {40,2,
40,2,0,
40,2,0,
40,2,0,
47,185,1,
47,183,1,
40,2,0,0,
44,
1,
49,184,1,0,78,
49,182,1,0,78,
19,
40,2,0,0,0,0,0,
40,170,1,
@ -1807,25 +1799,25 @@ static uint8_t SKSL_INCLUDE_sksl_public[] = {40,2,
40,2,0,56,
21,
40,2,0,95,0,1,
49,184,1,0,
49,182,1,0,
40,2,0,58,
49,58,1,0,
40,2,0,
40,2,0,
34,
49,185,1,0,1,0,
49,183,1,0,1,0,
22,65,1,
2,
42,2,0,
46,186,1,
9,34,2,
46,184,1,
9,19,2,
40,2,0,2,
46,187,1,
9,32,2,
46,185,1,
9,17,2,
40,5,0,2,2,0,
0,0,
1,0,3,
47,186,1,
47,184,1,
40,2,0,0,
1,
19,
@ -1851,11 +1843,11 @@ static uint8_t SKSL_INCLUDE_sksl_public[] = {40,2,
40,2,0,
40,2,0,
40,2,0,
47,187,1,
47,185,1,
40,5,0,0,
44,
1,
49,186,1,0,78,
49,184,1,0,78,
19,
40,2,0,0,0,0,0,
40,170,1,
@ -1879,25 +1871,25 @@ static uint8_t SKSL_INCLUDE_sksl_public[] = {40,2,
40,2,0,56,
21,
40,2,0,95,0,1,
49,186,1,0,
49,184,1,0,
40,2,0,58,
49,62,1,0,
40,5,0,
40,5,0,
34,
49,187,1,0,1,0,
49,185,1,0,1,0,
22,70,1,
2,
42,2,0,
46,188,1,
9,34,2,
46,186,1,
9,19,2,
40,2,0,2,
46,189,1,
9,32,2,
46,187,1,
9,17,2,
40,9,0,2,2,0,
0,0,
1,0,3,
47,188,1,
47,186,1,
40,2,0,0,
1,
19,
@ -1923,11 +1915,11 @@ static uint8_t SKSL_INCLUDE_sksl_public[] = {40,2,
40,2,0,
40,2,0,
40,2,0,
47,189,1,
47,187,1,
40,9,0,0,
44,
1,
49,188,1,0,78,
49,186,1,0,78,
19,
40,2,0,0,0,0,0,
40,170,1,
@ -1951,25 +1943,25 @@ static uint8_t SKSL_INCLUDE_sksl_public[] = {40,2,
40,2,0,56,
21,
40,2,0,95,0,1,
49,188,1,0,
49,186,1,0,
40,2,0,58,
49,67,1,0,
40,9,0,
40,9,0,
34,
49,189,1,0,1,0,
49,187,1,0,1,0,
22,75,1,
2,
42,2,0,
46,190,1,
9,34,2,
46,188,1,
9,19,2,
40,2,0,2,
46,191,1,
9,32,2,
46,189,1,
9,17,2,
40,13,0,2,2,0,
0,0,
1,0,3,
47,190,1,
47,188,1,
40,2,0,0,
1,
19,
@ -1995,11 +1987,11 @@ static uint8_t SKSL_INCLUDE_sksl_public[] = {40,2,
40,2,0,
40,2,0,
40,2,0,
47,191,1,
47,189,1,
40,13,0,0,
44,
1,
49,190,1,0,78,
49,188,1,0,78,
19,
40,2,0,0,0,0,0,
40,170,1,
@ -2023,13 +2015,13 @@ static uint8_t SKSL_INCLUDE_sksl_public[] = {40,2,
40,2,0,56,
21,
40,2,0,95,0,1,
49,190,1,0,
49,188,1,0,
40,2,0,58,
49,72,1,0,
40,13,0,
40,13,0,
34,
49,191,1,0,1,0,
49,189,1,0,1,0,
22,177,1,
2,
42,0,0,0,0,1,
@ -2045,26 +2037,8 @@ static uint8_t SKSL_INCLUDE_sksl_public[] = {40,2,
49,175,1,0,1,3,
19,
40,138,0,23,183,209,56,
43,192,1,36,2,
43,190,1,21,2,
39,
49,175,1,0,1,3,1,0,
22,179,1,
2,
42,0,0,0,0,1,
34,
6,
40,13,0,2,
1,
39,
49,178,1,0,3,0,1,2,59,
21,
40,2,0,162,0,2,
39,
49,178,1,0,1,3,
19,
40,2,0,23,183,209,56,
40,9,0,
39,
49,178,1,0,1,3,1,0,
13,};
static constexpr size_t SKSL_INCLUDE_sksl_public_LENGTH = sizeof(SKSL_INCLUDE_sksl_public);

View File

@ -566,7 +566,6 @@ half4 blend(SkBlendMode mode, half4 src, half4 dst) {
// The max() guards against division by zero when the incoming color is transparent black
half4 unpremul(half4 color) { return half4(color.rgb / max(color.a, 0.0001), color.a); }
float4 unpremul_float(float4 color) { return float4(color.rgb / max(color.a, 0.0001), color.a); }
float2 proj(float3 p) { return p.xy / p.z; }

View File

@ -192,4 +192,3 @@ $bvec not($bvec x);
// The max() guards against division by zero when the incoming color is transparent black
half4 unpremul (half4 color) { return half4 (color.rgb / max(color.a, 0.0001), color.a); }
float4 unpremul_float(float4 color) { return float4(color.rgb / max(color.a, 0.0001), color.a); }