Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 7b9dc01

Browse files
committed
update
1 parent db07051 commit 7b9dc01

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

impeller/entity/geometry/stroke_path_geometry.cc

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ Scalar StrokePathGeometry::CreateBevelAndGetDirection(
5252
vtx_builder.AppendVertex(vtx);
5353
vtx.position = position + end_offset * dir;
5454
vtx_builder.AppendVertex(vtx);
55-
5655

5756
return dir;
5857
}
@@ -101,8 +100,8 @@ StrokePathGeometry::JoinProc StrokePathGeometry::GetJoinProc(Join stroke_join) {
101100
vtx.position = position + miter_point * dir;
102101
vtx_builder.AppendVertex(vtx);
103102

104-
CreateBevelAndGetDirection(vtx_builder, position,
105-
start_offset, end_offset);
103+
CreateBevelAndGetDirection(vtx_builder, position, start_offset,
104+
end_offset);
106105

107106
// Outer miter point.
108107
vtx.position = position + miter_point * dir;
@@ -342,9 +341,12 @@ StrokePathGeometry::CreateSolidStrokeVertices(
342341
cap_offset, scale, false);
343342
} else {
344343
// Fill the stroke width At the end of contour.
345-
// Point endOffset = Vector2{-contour.end_direction.y, contour.end_direction.x} * stroke_width * 0.5;
346-
// FML_LOG(ERROR)<< "open loop" << ", adding (" << endOffset.x << ", " << endOffset.y << ") to point (" << polyline.points[contour_start_point_i].x << ", " << polyline.points[contour_start_point_i].y << ")";
347-
// vtx.position = polyline.points[contour_start_point_i] + endOffset;
344+
// Point endOffset = Vector2{-contour.end_direction.y,
345+
// contour.end_direction.x} * stroke_width * 0.5; FML_LOG(ERROR)<< "open
346+
// loop" << ", adding (" << endOffset.x << ", " << endOffset.y << ") to
347+
// point (" << polyline.points[contour_start_point_i].x << ", " <<
348+
// polyline.points[contour_start_point_i].y << ")"; vtx.position =
349+
// polyline.points[contour_start_point_i] + endOffset;
348350
// vtx_builder.AppendVertex(vtx);
349351
// vtx.position = polyline.points[contour_start_point_i] - endOffset;
350352
// vtx_builder.AppendVertex(vtx);

0 commit comments

Comments
 (0)