Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(169)

Unified Diff: gpu/command_buffer/service/texture_manager.cc

Issue 2771923006: Add CVPixelBufferRef memory tracking (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | media/gpu/vt_video_decode_accelerator_mac.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(
« no previous file with comments | « no previous file | media/gpu/vt_video_decode_accelerator_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698