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

Unified Diff: remoting/client/plugin/pepper_video_renderer_3d.cc

Issue 1545723002: Use std::move() instead of .Pass() in remoting/* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_not_pass_host
Patch Set: 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
« no previous file with comments | « remoting/client/plugin/pepper_video_renderer_2d.cc ('k') | remoting/client/server_log_entry_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/plugin/pepper_video_renderer_3d.cc
diff --git a/remoting/client/plugin/pepper_video_renderer_3d.cc b/remoting/client/plugin/pepper_video_renderer_3d.cc
index 6277f9b08842cf24782710656028c73bcc27b336..732b77b149fb049bc7b03081030b7764612f5d42 100644
--- a/remoting/client/plugin/pepper_video_renderer_3d.cc
+++ b/remoting/client/plugin/pepper_video_renderer_3d.cc
@@ -6,6 +6,8 @@
#include <math.h>
+#include <utility>
+
#include "base/callback_helpers.h"
#include "base/stl_util.h"
#include "ppapi/c/pp_codecs.h"
@@ -33,9 +35,7 @@ const uint32_t kMinimumPictureCount = 0; // 3
class PepperVideoRenderer3D::PendingPacket {
public:
PendingPacket(scoped_ptr<VideoPacket> packet, const base::Closure& done)
- : packet_(packet.Pass()),
- done_runner_(done) {
- }
+ : packet_(std::move(packet)), done_runner_(done) {}
~PendingPacket() {}
@@ -224,7 +224,7 @@ void PepperVideoRenderer3D::ProcessVideoPacket(scoped_ptr<VideoPacket> packet,
remoting_rect.height()));
}
if (!frame_shape_ || !frame_shape_->Equals(*shape)) {
- frame_shape_ = shape.Pass();
+ frame_shape_ = std::move(shape);
event_handler_->OnVideoShape(frame_shape_.get());
}
} else if (frame_shape_) {
@@ -246,7 +246,7 @@ void PepperVideoRenderer3D::ProcessVideoPacket(scoped_ptr<VideoPacket> packet,
}
pending_packets_.push_back(
- new PendingPacket(packet.Pass(), done_runner.Release()));
+ new PendingPacket(std::move(packet), done_runner.Release()));
DecodeNextPacket();
}
@@ -340,7 +340,7 @@ void PepperVideoRenderer3D::PaintIfNeeded() {
return;
if (next_picture_)
- current_picture_ = next_picture_.Pass();
+ current_picture_ = std::move(next_picture_);
force_repaint_ = false;
« no previous file with comments | « remoting/client/plugin/pepper_video_renderer_2d.cc ('k') | remoting/client/server_log_entry_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698