From f9c838ef0cdc43cd851fcaac77286563a5ba9577 Mon Sep 17 00:00:00 2001 From: dcheng Date: Fri, 18 Dec 2015 00:10:12 -0800 Subject: =?UTF-8?q?Convert=20Pass()=E2=86=92std::move()=20in=20cc/?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit BUG=557422 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1540503002 Cr-Commit-Position: refs/heads/master@{#366046} --- cc/resources/resource_pool.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cc/resources') 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 +#include #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; -- cgit v1.1