[ganesh][dawn] Fix -Wreturn-std-move-in-c++11 error

Change-Id: Ic47605588203df2a765b241c5c366973741b8867
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/536100
Reviewed-by: Julia Lavrova <jlavrova@google.com>
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: Arman Uguray <armansito@google.com>
This commit is contained in:
Arman Uguray 2022-05-02 12:14:43 -07:00 committed by SkCQ
parent ca9ce4de1d
commit f2cd6e8b36

View File

@ -184,7 +184,7 @@ sk_sp<GrGpuBuffer> GrDawnGpu::onCreateBuffer(size_t size, GrGpuBufferType type,
if (data && buffer) {
buffer->updateData(data, size);
}
return buffer;
return std::move(buffer);
}
////////////////////////////////////////////////////////////////////////////////