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

Unified Diff: content/common/gpu/gpu_command_buffer_stub.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
« no previous file with comments | « content/common/gpu/gpu_channel_manager.cc ('k') | content/common/gpu/image_transport_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/gpu_command_buffer_stub.cc
diff --git a/content/common/gpu/gpu_command_buffer_stub.cc b/content/common/gpu/gpu_command_buffer_stub.cc
index d21478da6cf674ac91df397feeead5c3d6f6f2ca..8aabdca64837872060e04791d90e814e63f2cd0a 100644
--- a/content/common/gpu/gpu_command_buffer_stub.cc
+++ b/content/common/gpu/gpu_command_buffer_stub.cc
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "content/common/gpu/gpu_command_buffer_stub.h"
+
+#include <utility>
+
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/command_line.h"
@@ -14,7 +18,6 @@
#include "build/build_config.h"
#include "content/common/gpu/gpu_channel.h"
#include "content/common/gpu/gpu_channel_manager.h"
-#include "content/common/gpu/gpu_command_buffer_stub.h"
#include "content/common/gpu/gpu_memory_manager.h"
#include "content/common/gpu/gpu_memory_tracking.h"
#include "content/common/gpu/gpu_messages.h"
@@ -665,7 +668,7 @@ void GpuCommandBufferStub::OnInitialize(
return;
}
command_buffer_->SetSharedStateBuffer(gpu::MakeBackingFromSharedMemory(
- shared_state_shm.Pass(), kSharedStateSize));
+ std::move(shared_state_shm), kSharedStateSize));
gpu::Capabilities capabilities = decoder_->GetCapabilities();
capabilities.future_sync_points = channel_->allow_future_sync_points();
@@ -859,7 +862,7 @@ void GpuCommandBufferStub::OnRegisterTransferBuffer(
if (command_buffer_) {
command_buffer_->RegisterTransferBuffer(
- id, gpu::MakeBackingFromSharedMemory(shared_memory.Pass(), size));
+ id, gpu::MakeBackingFromSharedMemory(std::move(shared_memory), size));
}
}
« no previous file with comments | « content/common/gpu/gpu_channel_manager.cc ('k') | content/common/gpu/image_transport_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698