[cr143] SkPath::Polygon spanified
Chromium change: https://skia.googlesource.com/skia/+/21ffb380f3ab449c64e1568fef0eff7c67f1ae75 commit 21ffb380f3ab449c64e1568fef0eff7c67f1ae75 Author: Michael Reed <mike@reedtribe.org> Date: Mon Oct 20 12:56:09 2025 -0400 Start migration off of pathref in SkPath impl : spans With immutable paths, SkPathRef will go away (replaced by SkPathData) This CL begins to simplify our API and internals to ease that change. - simplify access to path spans - eliminating a class of references to fPathRef - (need to change interpolate() to be non-modifying) Note: with this change, many other helpers like isLine() etc. can now trivially be implemented by clients. End goal: - SkPath.cpp is for 'portable' methods -- independent of pathref/data - SkPath_editing.cpp for pathref specifics - SkPath_data.cpp for alt impls using SkPathData ... to make clear how to switch between the two Change-Id: I1072e4d46d2d24f4edda830cff9a26e0caf803a1 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/1076305 Reviewed-by: Florin Malita <fmalita@google.com> Commit-Queue: Mike Reed <mike@reedtribe.org> Reviewed-by: Kaylee Lubick <kjlubick@google.com>
This commit is contained in:
@@ -138,8 +138,7 @@ class BorderWithArrow : public views::BubbleBorder {
|
||||
break;
|
||||
}
|
||||
|
||||
return SkPath::Polygon(points.data(), kNumPoints,
|
||||
part == BubbleArrowPart::kFill);
|
||||
return SkPath::Polygon(points, part == BubbleArrowPart::kFill);
|
||||
}
|
||||
};
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user