summaryrefslogtreecommitdiffstats
path: root/cc/resources
diff options
context:
space:
mode:
authordcheng <dcheng@chromium.org>2015-12-18 00:10:12 -0800
committerCommit bot <commit-bot@chromium.org>2015-12-18 08:10:52 +0000
commitf9c838ef0cdc43cd851fcaac77286563a5ba9577 (patch)
tree5e315a0399f91f6996bbad30ef930107e41d4d94 /cc/resources
parent32e9f8bbd34e924a562530c298148a6647c38817 (diff)
downloadchromium_src-f9c838ef0cdc43cd851fcaac77286563a5ba9577.zip
chromium_src-f9c838ef0cdc43cd851fcaac77286563a5ba9577.tar.gz
chromium_src-f9c838ef0cdc43cd851fcaac77286563a5ba9577.tar.bz2
Convert Pass()→std::move() in cc/
BUG=557422 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1540503002 Cr-Commit-Position: refs/heads/master@{#366046}
Diffstat (limited to 'cc/resources')
-rw-r--r--cc/resources/resource_pool.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/cc/resources/resource_pool.cc b/cc/resources/resource_pool.cc
index 778ddbe..507aa2b 100644
--- a/cc/resources/resource_pool.cc
+++ b/cc/resources/resource_pool.cc
@@ -5,6 +5,7 @@
#include "cc/resources/resource_pool.h"
#include <algorithm>
+#include <utility>
#include "base/format_macros.h"
#include "base/strings/stringprintf.h"
@@ -222,11 +223,11 @@ void ResourcePool::CheckBusyResources() {
PoolResource* resource = it->get();
if (resource_provider_->CanLockForWrite(resource->id())) {
- DidFinishUsingResource(it->Pass());
+ DidFinishUsingResource(std::move(*it));
busy_resources_.erase(it);
} else if (resource_provider_->IsLost(resource->id())) {
// Remove lost resources from pool.
- DeleteResource(it->Pass());
+ DeleteResource(std::move(*it));
busy_resources_.erase(it);
} else {
++i;