FillRule fillRule, const VRect &clip)
{
if (path.empty()) {
- promise->set_value(VRle());
+ rle.reset();
+ promise->set_value(rle);
return;
}
return RleTaskScheduler::instance().process(RleTask(promise, std::move(path), std::move(rle), fillRule, clip));
JoinStyle join, float width,
float meterLimit, const VRect &clip)
{
- if (path.empty()) {
- promise->set_value(VRle());
+ if (path.empty() || vCompare(width, 0.0f)) {
+ rle.reset();
+ promise->set_value(rle);
return;
}
return RleTaskScheduler::instance().process(RleTask(promise, std::move(path), std::move(rle), cap, join, width, meterLimit, clip));