[Impeller] disabling the color write mask seems to improve performance on iOS compared to just the blend options. (flutter/engine#53322)
Otherwise should be semantically equivalent/no-op.
This commit is contained in:
@@ -40,6 +40,7 @@ void ContentContextOptions::ApplyToPipelineDescriptor(
|
||||
color0.format = color_attachment_pixel_format;
|
||||
color0.alpha_blend_op = BlendOperation::kAdd;
|
||||
color0.color_blend_op = BlendOperation::kAdd;
|
||||
color0.write_mask = ColorWriteMaskBits::kAll;
|
||||
|
||||
switch (pipeline_blend) {
|
||||
case BlendMode::kClear:
|
||||
@@ -69,6 +70,7 @@ void ContentContextOptions::ApplyToPipelineDescriptor(
|
||||
color0.dst_color_blend_factor = BlendFactor::kOne;
|
||||
color0.src_alpha_blend_factor = BlendFactor::kZero;
|
||||
color0.src_color_blend_factor = BlendFactor::kZero;
|
||||
color0.write_mask = ColorWriteMaskBits::kNone;
|
||||
break;
|
||||
case BlendMode::kSourceOver:
|
||||
color0.dst_alpha_blend_factor = BlendFactor::kOneMinusSourceAlpha;
|
||||
|
||||
Reference in New Issue
Block a user