| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ui/gl/gl_image_ref_counted_memory.h" | 5 #include "ui/gl/gl_image_ref_counted_memory.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include "base/logging.h" | 9 #include "base/logging.h" |
| 8 #include "base/memory/ref_counted_memory.h" | 10 #include "base/memory/ref_counted_memory.h" |
| 9 #include "base/trace_event/memory_allocator_dump.h" | 11 #include "base/trace_event/memory_allocator_dump.h" |
| 10 #include "base/trace_event/memory_dump_manager.h" | 12 #include "base/trace_event/memory_dump_manager.h" |
| 11 #include "base/trace_event/process_memory_dump.h" | 13 #include "base/trace_event/process_memory_dump.h" |
| 12 #include "ui/gfx/buffer_format_util.h" | 14 #include "ui/gfx/buffer_format_util.h" |
| 13 | 15 |
| 14 namespace gl { | 16 namespace gl { |
| 15 | 17 |
| 16 GLImageRefCountedMemory::GLImageRefCountedMemory(const gfx::Size& size, | 18 GLImageRefCountedMemory::GLImageRefCountedMemory(const gfx::Size& size, |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 dump->AddScalar(base::trace_event::MemoryAllocatorDump::kNameSize, | 56 dump->AddScalar(base::trace_event::MemoryAllocatorDump::kNameSize, |
| 55 base::trace_event::MemoryAllocatorDump::kUnitsBytes, | 57 base::trace_event::MemoryAllocatorDump::kUnitsBytes, |
| 56 static_cast<uint64_t>(size_in_bytes)); | 58 static_cast<uint64_t>(size_in_bytes)); |
| 57 | 59 |
| 58 pmd->AddSuballocation(dump->guid(), | 60 pmd->AddSuballocation(dump->guid(), |
| 59 base::trace_event::MemoryDumpManager::GetInstance() | 61 base::trace_event::MemoryDumpManager::GetInstance() |
| 60 ->system_allocator_pool_name()); | 62 ->system_allocator_pool_name()); |
| 61 } | 63 } |
| 62 | 64 |
| 63 } // namespace gl | 65 } // namespace gl |
| OLD | NEW |