Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(419)

Unified Diff: content/common/gpu/media/vaapi_video_encode_accelerator.cc

Issue 1552863003: Global conversion of Pass()→std::move(): CrOS edition (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/common/gpu/media/vaapi_video_encode_accelerator.cc
diff --git a/content/common/gpu/media/vaapi_video_encode_accelerator.cc b/content/common/gpu/media/vaapi_video_encode_accelerator.cc
index 8a1dbfda775e733be79e552162b0a2f630ae6262..049cd7a5547ef7c062bed0eb898b3f6187dee502 100644
--- a/content/common/gpu/media/vaapi_video_encode_accelerator.cc
+++ b/content/common/gpu/media/vaapi_video_encode_accelerator.cc
@@ -5,6 +5,7 @@
#include "content/common/gpu/media/vaapi_video_encode_accelerator.h"
#include <string.h>
+#include <utility>
#include "base/bind.h"
#include "base/callback.h"
@@ -102,7 +103,7 @@ struct VaapiVideoEncodeAccelerator::BitstreamBufferRef {
BitstreamBufferRef(int32_t id,
scoped_ptr<base::SharedMemory> shm,
size_t size)
- : id(id), shm(shm.Pass()), size(size) {}
+ : id(id), shm(std::move(shm)), size(size) {}
const int32_t id;
const scoped_ptr<base::SharedMemory> shm;
const size_t size;
@@ -676,7 +677,7 @@ void VaapiVideoEncodeAccelerator::UseOutputBitstreamBuffer(
}
scoped_ptr<BitstreamBufferRef> buffer_ref(
- new BitstreamBufferRef(buffer.id(), shm.Pass(), buffer.size()));
+ new BitstreamBufferRef(buffer.id(), std::move(shm), buffer.size()));
encoder_thread_task_runner_->PostTask(
FROM_HERE,

Powered by Google App Engine
This is Rietveld 408576698