| 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 7aadd247e947134c1e10f334dfcac3118c508d64..6533568785a88ef11841dcd05a9c7945203b9424 100644
|
| --- a/ui/gl/gl_image_ref_counted_memory.cc
|
| +++ b/ui/gl/gl_image_ref_counted_memory.cc
|
| @@ -6,13 +6,15 @@
|
|
|
| #include "base/logging.h"
|
| #include "base/memory/ref_counted_memory.h"
|
| +#include "base/trace_event/memory_allocator_dump.h"
|
| +#include "base/trace_event/memory_dump_manager.h"
|
| +#include "base/trace_event/process_memory_dump.h"
|
|
|
| namespace gfx {
|
|
|
| -GLImageRefCountedMemory::GLImageRefCountedMemory(const gfx::Size& size,
|
| +GLImageRefCountedMemory::GLImageRefCountedMemory(const Size& size,
|
| unsigned internalformat)
|
| - : GLImageMemory(size, internalformat) {
|
| -}
|
| + : GLImageMemory(size, internalformat) {}
|
|
|
| GLImageRefCountedMemory::~GLImageRefCountedMemory() {
|
| DCHECK(!ref_counted_memory_.get());
|
| @@ -20,7 +22,7 @@ GLImageRefCountedMemory::~GLImageRefCountedMemory() {
|
|
|
| bool GLImageRefCountedMemory::Initialize(
|
| base::RefCountedMemory* ref_counted_memory,
|
| - gfx::BufferFormat format) {
|
| + BufferFormat format) {
|
| if (!GLImageMemory::Initialize(ref_counted_memory->front(), format))
|
| return false;
|
|
|
| @@ -31,7 +33,7 @@ bool GLImageRefCountedMemory::Initialize(
|
|
|
| void GLImageRefCountedMemory::Destroy(bool have_context) {
|
| GLImageMemory::Destroy(have_context);
|
| - ref_counted_memory_ = NULL;
|
| + ref_counted_memory_ = nullptr;
|
| }
|
|
|
| void GLImageRefCountedMemory::OnMemoryDump(
|
| @@ -52,9 +54,6 @@ void GLImageRefCountedMemory::OnMemoryDump(
|
| pmd->AddSuballocation(dump->guid(),
|
| base::trace_event::MemoryDumpManager::GetInstance()
|
| ->system_allocator_pool_name());
|
| -
|
| - // Also dump the base class's texture memory.
|
| - GLImageMemory::OnMemoryDump(pmd, process_tracing_id, dump_name);
|
| }
|
|
|
| } // namespace gfx
|
|
|