remove unused clamp_a_dst
Change-Id: Ic94bb9082d9f140069bb9a2c528816887752fbaf Reviewed-on: https://skia-review.googlesource.com/c/skia/+/200548 Commit-Queue: Mike Klein <mtklein@google.com> Commit-Queue: Brian Osman <brianosman@google.com> Auto-Submit: Mike Klein <mtklein@google.com> Reviewed-by: Brian Osman <brianosman@google.com>
This commit is contained in:
parent
efb6e4a90d
commit
aa42ac6afc
@ -35,7 +35,7 @@
|
||||
#define SK_RASTER_PIPELINE_STAGES(M) \
|
||||
M(callback) \
|
||||
M(move_src_dst) M(move_dst_src) \
|
||||
M(clamp_0) M(clamp_1) M(clamp_a) M(clamp_a_dst) M(clamp_gamut) \
|
||||
M(clamp_0) M(clamp_1) M(clamp_a) M(clamp_gamut) \
|
||||
M(unpremul) M(premul) M(premul_dst) \
|
||||
M(force_opaque) M(force_opaque_dst) \
|
||||
M(set_rgb) M(unbounded_set_rgb) M(swap_rb) M(swap_rb_dst) \
|
||||
|
@ -1331,13 +1331,6 @@ STAGE(clamp_a, Ctx::None) {
|
||||
b = min(b, a);
|
||||
}
|
||||
|
||||
STAGE(clamp_a_dst, Ctx::None) {
|
||||
da = min(da, 1.0f);
|
||||
dr = min(dr, da);
|
||||
dg = min(dg, da);
|
||||
db = min(db, da);
|
||||
}
|
||||
|
||||
STAGE(clamp_gamut, Ctx::None) {
|
||||
// If you're using this stage, a should already be in [0,1].
|
||||
r = min(max(r, 0), a);
|
||||
@ -2633,11 +2626,6 @@ STAGE_PP(clamp_a, Ctx::None) {
|
||||
g = min(g, a);
|
||||
b = min(b, a);
|
||||
}
|
||||
STAGE_PP(clamp_a_dst, Ctx::None) {
|
||||
dr = min(dr, da);
|
||||
dg = min(dg, da);
|
||||
db = min(db, da);
|
||||
}
|
||||
|
||||
STAGE_PP(clamp_gamut, Ctx::None) {
|
||||
// It shouldn't be possible to get out-of-gamut
|
||||
|
Loading…
Reference in New Issue
Block a user