| Index: cc/resources/resource_provider.cc
|
| diff --git a/cc/resources/resource_provider.cc b/cc/resources/resource_provider.cc
|
| index caf86cab421a579eea591db031f6db89c9b3077e..b6eb30198c1a0f43ab03edf612ef4633f89de93c 100644
|
| --- a/cc/resources/resource_provider.cc
|
| +++ b/cc/resources/resource_provider.cc
|
| @@ -796,6 +796,9 @@ void ResourceProvider::DeleteResourceInternal(ResourceMap::iterator it,
|
| DCHECK(gl);
|
| gl->DeleteTextures(1, &resource->gl_id);
|
| resource->gl_id = 0;
|
| + // Shallow flush after deleting a texture to make sure the memory is freed
|
| + // as soon as possible.
|
| + gl->ShallowFlushCHROMIUM();
|
| }
|
| if (resource->shared_bitmap) {
|
| DCHECK(resource->origin != Resource::EXTERNAL);
|
|
|