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

Unified Diff: components/exo/surface.cc

Issue 1558513002: Global conversion of Pass()→std::move() on OS=linux (GYP edition) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: formatted 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 | « components/exo/shared_memory.cc ('k') | components/exo/wayland/server.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/surface.cc
diff --git a/components/exo/surface.cc b/components/exo/surface.cc
index a09ae06c840308ce3bcdad1ade6aa12e8791d20e..7501f58032c394dcb020501cf989c0dace502062 100644
--- a/components/exo/surface.cc
+++ b/components/exo/surface.cc
@@ -4,6 +4,8 @@
#include "components/exo/surface.h"
+#include <utility>
+
#include "base/callback_helpers.h"
#include "base/logging.h"
#include "base/macros.h"
@@ -269,7 +271,7 @@ void Surface::CommitSurfaceHierarchy() {
if (texture_mailbox_release_callback) {
// Update layer with the new contents.
layer()->SetTextureMailbox(texture_mailbox,
- texture_mailbox_release_callback.Pass(),
+ std::move(texture_mailbox_release_callback),
texture_mailbox.size_in_pixels());
layer()->SetTextureFlipped(false);
layer()->SetBounds(gfx::Rect(layer()->bounds().origin(),
@@ -402,7 +404,7 @@ void Surface::OnCompositingEnded(ui::Compositor* compositor) {
current_buffer_->ProduceTextureMailbox(&texture_mailbox);
if (texture_mailbox_release_callback) {
layer()->SetTextureMailbox(texture_mailbox,
- texture_mailbox_release_callback.Pass(),
+ std::move(texture_mailbox_release_callback),
texture_mailbox.size_in_pixels());
layer()->SetTextureFlipped(false);
layer()->SchedulePaint(gfx::Rect(texture_mailbox.size_in_pixels()));
« no previous file with comments | « components/exo/shared_memory.cc ('k') | components/exo/wayland/server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698