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

Unified Diff: content/common/gpu/gpu_channel.cc

Issue 1544293002: Convert Pass()→std::move() in //content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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
Index: content/common/gpu/gpu_channel.cc
diff --git a/content/common/gpu/gpu_channel.cc b/content/common/gpu/gpu_channel.cc
index b5e9aec2f161ffc87084dd3ad70a9c2b87e15a54..c8c11a4877da9134649e4ac2f7ce783bbb75320e 100644
--- a/content/common/gpu/gpu_channel.cc
+++ b/content/common/gpu/gpu_channel.cc
@@ -4,6 +4,8 @@
#include "content/common/gpu/gpu_channel.h"
+#include <utility>
+
#if defined(OS_WIN)
#include <windows.h>
#endif
@@ -127,7 +129,7 @@ bool GpuChannelMessageQueue::GenerateSyncPointMessage(
msg->retire_sync_point = retire_sync_point;
msg->sync_point = *sync_point;
- PushMessageHelper(msg.Pass());
+ PushMessageHelper(std::move(msg));
return true;
}
return false;
@@ -745,7 +747,7 @@ CreateCommandBufferResult GpuChannel::CreateViewCommandBuffer(
streams_.insert(std::make_pair(stream_id, stream));
}
- stubs_.set(route_id, stub.Pass());
+ stubs_.set(route_id, std::move(stub));
return CREATE_COMMAND_BUFFER_SUCCEEDED;
}
@@ -964,7 +966,7 @@ void GpuChannel::OnCreateOffscreenCommandBuffer(
streams_.insert(std::make_pair(stream_id, stream));
}
- stubs_.set(route_id, stub.Pass());
+ stubs_.set(route_id, std::move(stub));
*succeeded = true;
}
« no previous file with comments | « content/common/gpu/client/grcontext_for_webgraphicscontext3d.cc ('k') | content/common/gpu/gpu_channel_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698