summaryrefslogtreecommitdiffstats
path: root/cc/resources/scoped_resource.cc
diff options
context:
space:
mode:
Diffstat (limited to 'cc/resources/scoped_resource.cc')
-rw-r--r--cc/resources/scoped_resource.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/cc/resources/scoped_resource.cc b/cc/resources/scoped_resource.cc
index 525fb73..5fcaaca 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,
+ ResourceFormat format) {
DCHECK(!id());
DCHECK(!size.IsEmpty());
set_dimensions(size, format);
set_id(resource_provider_->CreateResource(
- size, format, GL_CLAMP_TO_EDGE, hint));
+ size, GL_CLAMP_TO_EDGE, hint, format));
#ifndef NDEBUG
allocate_thread_id_ = base::PlatformThread::CurrentId();