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

Unified Diff: content/browser/renderer_host/media/video_capture_gpu_jpeg_decoder.cc

Issue 1477643002: Remove the TYPE_WITH_MOVE_CONSTRUCTOR_FOR_CPP_03 macro. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@basepass
Patch Set: type-with-move: no-media Created 5 years 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/browser/renderer_host/media/video_capture_gpu_jpeg_decoder.cc
diff --git a/content/browser/renderer_host/media/video_capture_gpu_jpeg_decoder.cc b/content/browser/renderer_host/media/video_capture_gpu_jpeg_decoder.cc
index 4e88200b2542b94cccae3ef1f44db22feda2ce10..a370ccf52dd06120edbb185cfdea8592782657da 100644
--- a/content/browser/renderer_host/media/video_capture_gpu_jpeg_decoder.cc
+++ b/content/browser/renderer_host/media/video_capture_gpu_jpeg_decoder.cc
@@ -4,6 +4,8 @@
#include "content/browser/renderer_host/media/video_capture_gpu_jpeg_decoder.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/command_line.h"
#include "base/logging.h"
@@ -210,7 +212,7 @@ void VideoCaptureGpuJpegDecoder::GpuChannelEstablishedOnUIThread(
BrowserGpuChannelHostFactory::instance()->GetGpuChannel());
task_runner->PostTask(
FROM_HERE, base::Bind(&VideoCaptureGpuJpegDecoder::FinishInitialization,
- weak_this, base::Passed(&gpu_channel_host)));
+ weak_this, std::move(gpu_channel_host)));
}
void VideoCaptureGpuJpegDecoder::FinishInitialization(
@@ -220,7 +222,7 @@ void VideoCaptureGpuJpegDecoder::FinishInitialization(
if (!gpu_channel_host) {
LOG(ERROR) << "Failed to establish GPU channel for JPEG decoder";
} else if (gpu_channel_host->gpu_info().jpeg_decode_accelerator_supported) {
- gpu_channel_host_ = gpu_channel_host.Pass();
+ gpu_channel_host_ = std::move(gpu_channel_host);
decoder_ = gpu_channel_host_->CreateJpegDecoder(this);
}
decoder_status_ = decoder_ ? INIT_PASSED : FAILED;
« no previous file with comments | « content/browser/bluetooth/bluetooth_dispatcher_host.cc ('k') | content/child/service_worker/service_worker_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698