diff options
author | dcheng <dcheng@chromium.org> | 2015-12-18 00:10:12 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-12-18 08:10:52 +0000 |
commit | f9c838ef0cdc43cd851fcaac77286563a5ba9577 (patch) | |
tree | 5e315a0399f91f6996bbad30ef930107e41d4d94 /cc/resources/resource_pool.cc | |
parent | 32e9f8bbd34e924a562530c298148a6647c38817 (diff) | |
download | chromium_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/resource_pool.cc')
-rw-r--r-- | cc/resources/resource_pool.cc | 5 |
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; |