VRle LOTMaskItem::rle()
{
if (mRleTask.valid()) {
- mRle = std::move(mRleTask.get());
+ mRle = mRleTask.get();
if (!vCompare(mCombinedAlpha, 1.0f))
mRle = mRle * (mCombinedAlpha * 255);
if (mData->mInv)
auto i = _index++;
for (unsigned n = 0; n != _count; ++n) {
- if (_q[(i + n) % _count].try_push(task)) return std::move(receiver);
+ if (_q[(i + n) % _count].try_push(task)) return receiver;
}
_q[i % _count].push(task);
- return std::move(receiver);
+ return receiver;
}
std::future<bool> render(LOTPlayerPrivate *impl,
auto i = _index++;
for (unsigned n = 0; n != _count; ++n) {
- if (_q[(i + n) % _count].try_push(task)) return std::move(receiver);
+ if (_q[(i + n) % _count].try_push(task)) return receiver;
}
_q[i % _count].push(task);
- return std::move(receiver);
+ return receiver;
}
std::future<VRle> strokeRle(const VPath &path,
promise.set_value(VRle());
return promise.get_future();
}
- return std::move(raster_scheduler.fillRle(path, fillRule));
+ return raster_scheduler.fillRle(path, fillRule);
}
std::future<VRle>
promise.set_value(VRle());
return promise.get_future();
}
- return std::move(raster_scheduler.strokeRle(path, cap, join, width, meterLimit));
+ return raster_scheduler.strokeRle(path, cap, join, width, meterLimit);
}
V_END_NAMESPACE
bool try_pop(Task *&task) {
lock_t lock{_mutex, std::try_to_lock};
if (!lock || _q.empty()) return false;
- task = std::move(_q.front());
+ task = _q.front();
_q.pop_front();
return true;
}
while (_q.empty() && !_done)
_ready.wait(lock);
if (_q.empty()) return false;
- task = std::move(_q.front());
+ task = _q.front();
_q.pop_front();
return true;
}