| Index: cc/resources/resource_provider.cc
|
| diff --git a/cc/resources/resource_provider.cc b/cc/resources/resource_provider.cc
|
| index 38f79fb9fd4f2e3ef9a2ac32c8eed13eecd1442d..856e99d1011a68d613a8f2357fe1cee833350a93 100644
|
| --- a/cc/resources/resource_provider.cc
|
| +++ b/cc/resources/resource_provider.cc
|
| @@ -2090,12 +2090,8 @@ void ResourceProvider::CopyResource(ResourceId source_id, ResourceId dest_id) {
|
| }
|
| DCHECK(!dest_resource->image_id);
|
| dest_resource->allocated = true;
|
| - gl->CopyTextureCHROMIUM(dest_resource->target,
|
| - source_resource->gl_id,
|
| - dest_resource->gl_id,
|
| - 0,
|
| - GLInternalFormat(dest_resource->format),
|
| - GLDataType(dest_resource->format));
|
| + gl->CopySubTextureCHROMIUM(dest_resource->target, source_resource->gl_id,
|
| + dest_resource->gl_id, 0, 0, 0);
|
| if (source_resource->gl_read_lock_query_id) {
|
| // End query and create a read lock fence that will prevent access to
|
| // source resource until CopyTextureCHROMIUM command has completed.
|
|
|