| Index: ui/gl/gl_image_ref_counted_memory.cc
|
| diff --git a/ui/gl/gl_image_ref_counted_memory.cc b/ui/gl/gl_image_ref_counted_memory.cc
|
| index ed4e03f6a3a3ecf0866196f9825648cc5a8832b3..653d70a98c79901453bc22bc15a4695f10d7b365 100644
|
| --- a/ui/gl/gl_image_ref_counted_memory.cc
|
| +++ b/ui/gl/gl_image_ref_counted_memory.cc
|
| @@ -19,13 +19,13 @@ GLImageRefCountedMemory::~GLImageRefCountedMemory() {
|
| }
|
|
|
| bool GLImageRefCountedMemory::Initialize(
|
| - base::RefCountedMemory* ref_counted_memory) {
|
| - if (!HasValidFormat())
|
| + base::RefCountedMemory* ref_counted_memory,
|
| + gfx::GpuMemoryBuffer::Format format) {
|
| + if (!GLImageMemory::Initialize(ref_counted_memory->front(), format))
|
| return false;
|
|
|
| DCHECK(!ref_counted_memory_.get());
|
| ref_counted_memory_ = ref_counted_memory;
|
| - GLImageMemory::Initialize(ref_counted_memory_->front());
|
| return true;
|
| }
|
|
|
|
|