Index: cc/resources/scoped_resource.cc |
diff --git a/cc/resources/scoped_resource.cc b/cc/resources/scoped_resource.cc |
index 525fb735db5a57a1a49dbcc1d7d082fd3a049dfe..478b82ae7ddfebbddf581f2ae49579b8c745c250 100644 |
--- a/cc/resources/scoped_resource.cc |
+++ b/cc/resources/scoped_resource.cc |
@@ -16,14 +16,14 @@ ScopedResource::~ScopedResource() { |
} |
bool ScopedResource::Allocate(gfx::Size size, |
- GLenum format, |
- ResourceProvider::TextureUsageHint hint) { |
+ ResourceProvider::TextureUsageHint hint, |
+ ResourceProvider::TextureFormat texture_format) { |
DCHECK(!id()); |
DCHECK(!size.IsEmpty()); |
- set_dimensions(size, format); |
+ set_dimensions(size, texture_format); |
set_id(resource_provider_->CreateResource( |
- size, format, GL_CLAMP_TO_EDGE, hint)); |
+ size, GL_CLAMP_TO_EDGE, hint, texture_format)); |
#ifndef NDEBUG |
allocate_thread_id_ = base::PlatformThread::CurrentId(); |