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

Side by Side Diff: remoting/codec/video_encoder_verbatim.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 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 unified diff | Download patch
« no previous file with comments | « remoting/codec/video_encoder_helper.cc ('k') | remoting/codec/video_encoder_vpx.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "remoting/codec/video_encoder_verbatim.h" 5 #include "remoting/codec/video_encoder_verbatim.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 const int row_size = webrtc::DesktopFrame::kBytesPerPixel * rect.width(); 57 const int row_size = webrtc::DesktopFrame::kBytesPerPixel * rect.width();
58 const uint8_t* in = frame.data() + rect.top() * in_stride + 58 const uint8_t* in = frame.data() + rect.top() * in_stride +
59 rect.left() * webrtc::DesktopFrame::kBytesPerPixel; 59 rect.left() * webrtc::DesktopFrame::kBytesPerPixel;
60 for (int y = rect.top(); y < rect.top() + rect.height(); ++y) { 60 for (int y = rect.top(); y < rect.top() + rect.height(); ++y) {
61 memcpy(out, in, row_size); 61 memcpy(out, in, row_size);
62 out += row_size; 62 out += row_size;
63 in += in_stride; 63 in += in_stride;
64 } 64 }
65 } 65 }
66 66
67 return packet.Pass(); 67 return packet;
68 } 68 }
69 69
70 } // namespace remoting 70 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/codec/video_encoder_helper.cc ('k') | remoting/codec/video_encoder_vpx.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698