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 1831c084a215b092cc6fc16eae1a84cad0f601c1..a417f1573c722dba4d8ce8d482086e94e84debbc 100644 |
--- a/ui/gl/gl_image_ref_counted_memory.cc |
+++ b/ui/gl/gl_image_ref_counted_memory.cc |
@@ -9,7 +9,6 @@ |
#include "base/trace_event/memory_allocator_dump.h" |
#include "base/trace_event/memory_dump_manager.h" |
#include "base/trace_event/process_memory_dump.h" |
-#include "ui/gfx/buffer_format_util.h" |
namespace gl { |
@@ -24,11 +23,8 @@ |
bool GLImageRefCountedMemory::Initialize( |
base::RefCountedMemory* ref_counted_memory, |
gfx::BufferFormat format) { |
- if (!GLImageMemory::Initialize( |
- ref_counted_memory->front(), format, |
- gfx::RowSizeForBufferFormat(GetSize().width(), format, 0))) { |
+ if (!GLImageMemory::Initialize(ref_counted_memory->front(), format)) |
return false; |
- } |
DCHECK(!ref_counted_memory_.get()); |
ref_counted_memory_ = ref_counted_memory; |