diff options
Diffstat (limited to 'cc/resources/resource_pool.cc')
-rw-r--r-- | cc/resources/resource_pool.cc | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/cc/resources/resource_pool.cc b/cc/resources/resource_pool.cc index 7170a39..31b9b27 100644 --- a/cc/resources/resource_pool.cc +++ b/cc/resources/resource_pool.cc @@ -51,16 +51,10 @@ scoped_ptr<ScopedResource> ResourcePool::AcquireResource( return make_scoped_ptr(resource); } - // Create new resource. scoped_ptr<ScopedResource> resource = ScopedResource::Create(resource_provider_); resource->AllocateManaged(size, target_, format_); - // Extend all read locks on all resources until the resource is - // finished being used, such that we know when resources are - // truly safe to recycle. - resource_provider_->EnableReadLockFences(resource->id(), true); - memory_usage_bytes_ += resource->bytes(); ++resource_count_; return resource.Pass(); |