summaryrefslogtreecommitdiffstats
path: root/cc/resources/resource_provider.cc
diff options
context:
space:
mode:
Diffstat (limited to 'cc/resources/resource_provider.cc')
-rw-r--r--cc/resources/resource_provider.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/cc/resources/resource_provider.cc b/cc/resources/resource_provider.cc
index 57cde87..c3a6c7b 100644
--- a/cc/resources/resource_provider.cc
+++ b/cc/resources/resource_provider.cc
@@ -1317,8 +1317,8 @@ void ResourceProvider::AcquireImage(ResourceId id) {
if (resource->image_id != 0) {
// If we had previously allocated an image for this resource,
- // release it before allocating a new one to prevent leaks.
- ReleaseImage(id);
+ // then just reuse same image.
+ return;
}
WebGraphicsContext3D* context3d = output_surface_->context3d();