Skip to content

Commit 00b2ae9

Browse files
committed
revert drawline change
1 parent 2c6e0d8 commit 00b2ae9

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

  • engine/src/flutter/impeller/display_list

‎engine/src/flutter/impeller/display_list/canvas.cc‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -791,10 +791,9 @@ void Canvas::DrawLine(const Point& p0,
791791
auto geometry = std::make_unique<LineGeometry>(p0, p1, paint.stroke);
792792

793793
if ((renderer_.GetContext()->GetFlags().antialiased_lines ||
794-
(renderer_.GetContext()->GetFlags().use_sdfs &&
795-
IsCompatibleWithSDFRendering(paint))) &&
794+
renderer_.GetContext()->GetFlags().use_sdfs) &&
796795
!paint.color_filter && !paint.invert_colors && !paint.image_filter &&
797-
!paint.color_source) {
796+
!paint.mask_blur_descriptor.has_value() && !paint.color_source) {
798797
auto contents = LineContents::Make(std::move(geometry), paint.color);
799798
entity.SetContents(std::move(contents));
800799
AddRenderEntityToCurrentPass(entity, reuse_depth);

0 commit comments

Comments
 (0)