| Index: gpu/command_buffer/service/texture_manager.cc
|
| diff --git a/gpu/command_buffer/service/texture_manager.cc b/gpu/command_buffer/service/texture_manager.cc
|
| index 35f80f4e49c5aee83643f57f0cd53f92060bc7ef..68cd6bf3e182ae549100085bb16a2ca101962ac9 100644
|
| --- a/gpu/command_buffer/service/texture_manager.cc
|
| +++ b/gpu/command_buffer/service/texture_manager.cc
|
| @@ -1756,17 +1756,15 @@ void Texture::DumpLevelMemory(base::trace_event::ProcessMemoryDump* pmd,
|
| continue;
|
|
|
| // If a level has a GLImage, ask the GLImage to dump itself.
|
| + // If a level does not have a GLImage bound to it, then dump the
|
| + // texture allocation also as the storage is not provided by the
|
| + // GLImage in that case.
|
| if (level_infos[level_index].image) {
|
| level_infos[level_index].image->OnMemoryDump(
|
| pmd, client_tracing_id,
|
| base::StringPrintf("%s/face_%d/level_%d", dump_name.c_str(),
|
| face_index, level_index));
|
| - }
|
| -
|
| - // If a level does not have a GLImage bound to it, then dump the
|
| - // texture allocation also as the storage is not provided by the
|
| - // GLImage in that case.
|
| - if (level_infos[level_index].image_state != BOUND) {
|
| + } else {
|
| MemoryAllocatorDump* dump = pmd->CreateAllocatorDump(base::StringPrintf(
|
| "%s/face_%d/level_%d", dump_name.c_str(), face_index, level_index));
|
| dump->AddScalar(
|
|
|