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

Unified Diff: remoting/host/chromeos/aura_desktop_capturer.cc

Issue 1549493004: Use std::move() instead of .Pass() in remoting/host (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_not_pass
Patch Set: include <utility> 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/host/cast_extension_session.cc ('k') | remoting/host/chromeos/aura_desktop_capturer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/chromeos/aura_desktop_capturer.cc
diff --git a/remoting/host/chromeos/aura_desktop_capturer.cc b/remoting/host/chromeos/aura_desktop_capturer.cc
index 02b960d839c467418a0f858e3eabbbeb7800eee0..dbaea58006bd5d4ca60e4375f7c51ecc96aeecf2 100644
--- a/remoting/host/chromeos/aura_desktop_capturer.cc
+++ b/remoting/host/chromeos/aura_desktop_capturer.cc
@@ -4,6 +4,8 @@
#include "remoting/host/chromeos/aura_desktop_capturer.h"
+#include <utility>
+
#include "base/bind.h"
#include "cc/output/copy_output_request.h"
#include "cc/output/copy_output_result.h"
@@ -49,7 +51,7 @@ void AuraDesktopCapturer::Capture(const webrtc::DesktopRegion&) {
gfx::Rect window_rect(desktop_window_->bounds().size());
request->set_area(window_rect);
- desktop_window_->layer()->RequestCopyOfOutput(request.Pass());
+ desktop_window_->layer()->RequestCopyOfOutput(std::move(request));
}
void AuraDesktopCapturer::OnFrameCaptured(
@@ -64,7 +66,7 @@ void AuraDesktopCapturer::OnFrameCaptured(
scoped_ptr<SkBitmap> bitmap = result->TakeBitmap();
scoped_ptr<webrtc::DesktopFrame> frame(
- SkiaBitmapDesktopFrame::Create(bitmap.Pass()));
+ SkiaBitmapDesktopFrame::Create(std::move(bitmap)));
// |VideoFramePump| will not encode the frame if |updated_region| is empty.
const webrtc::DesktopRect& rect = webrtc::DesktopRect::MakeWH(
« no previous file with comments | « remoting/host/cast_extension_session.cc ('k') | remoting/host/chromeos/aura_desktop_capturer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698