Fix emplace on GrTRecorder.

Change-Id: I9250f62ce09f36f124cac6d867a09a4a262f5416
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/233302
Reviewed-by: Ben Wagner <bungeman@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
This commit is contained in:
Greg Daniel 2019-08-08 16:32:12 -04:00 committed by Skia Commit-Bot
parent b215131006
commit 26cedb4c60

View File

@ -70,7 +70,7 @@ public:
* between reinterpret_cast<TBase*> and static_cast<TBase*> when operating on TItem*.
* Multiple inheritance may make this not true. It is runtime asserted.
*/
template <typename TItem, typename... Args> TItem& emplace(Args... args) {
template <typename TItem, typename... Args> TItem& emplace(Args&&... args) {
return this->emplaceWithData<TItem, Args...>(0, std::forward<Args>(args)...);
}