Change-Id: I5c0be929f51b35720d5c53bdeabec75227274761
}
struct RleTask {
- RleTask() { receiver = sender.get_future(); }
std::promise<VRle> sender;
- std::future<VRle> receiver;
- bool stroke;
VPath path;
VRle rle;
- FillRule fillRule;
- CapStyle cap;
- JoinStyle join;
float width;
float meterLimit;
VRect clip;
+ FillRule fillRule;
+ CapStyle cap;
+ JoinStyle join;
+ bool stroke;
VRle operator()(FTOutline &outRef, SW_FT_Stroker &stroker);
void render(FTOutline &outRef);
};
std::future<VRle> async(RleTask *task)
{
- auto receiver = std::move(task->receiver);
+ auto receiver = std::move(task->sender.get_future());
auto i = _index++;
for (unsigned n = 0; n != _count; ++n) {