Remove deprecated WebGPU blend factors
The previous values are about to be removed from Dawn. Bug: chromium:1199057 Change-Id: Iec6c4e4d641a99bceae975e68ab4b53ccdc75ef0 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/445436 Auto-Submit: Brandon Jones <bajones@chromium.org> Commit-Queue: John Stiles <johnstiles@google.com> Reviewed-by: John Stiles <johnstiles@google.com>
This commit is contained in:
parent
2af4b13925
commit
c3dce03362
@ -22,13 +22,13 @@ static wgpu::BlendFactor to_dawn_blend_factor(GrBlendCoeff coeff) {
|
||||
case kOne_GrBlendCoeff:
|
||||
return wgpu::BlendFactor::One;
|
||||
case kSC_GrBlendCoeff:
|
||||
return wgpu::BlendFactor::SrcColor;
|
||||
return wgpu::BlendFactor::Src;
|
||||
case kISC_GrBlendCoeff:
|
||||
return wgpu::BlendFactor::OneMinusSrcColor;
|
||||
return wgpu::BlendFactor::OneMinusSrc;
|
||||
case kDC_GrBlendCoeff:
|
||||
return wgpu::BlendFactor::DstColor;
|
||||
return wgpu::BlendFactor::Dst;
|
||||
case kIDC_GrBlendCoeff:
|
||||
return wgpu::BlendFactor::OneMinusDstColor;
|
||||
return wgpu::BlendFactor::OneMinusDst;
|
||||
case kSA_GrBlendCoeff:
|
||||
return wgpu::BlendFactor::SrcAlpha;
|
||||
case kISA_GrBlendCoeff:
|
||||
|
Loading…
Reference in New Issue
Block a user