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

Unified Diff: gpu/command_buffer/service/memory_tracking.h

Issue 1256613002: Add tracing for GL texture objects (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@browser_process_id
Patch Set: Key texture manager memory dump provider registration off of memory_tracker_ Created 5 years, 4 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 | « gpu/command_buffer/service/gles2_cmd_decoder_unittest.cc ('k') | gpu/command_buffer/service/mocks.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/memory_tracking.h
diff --git a/gpu/command_buffer/service/memory_tracking.h b/gpu/command_buffer/service/memory_tracking.h
index a7447e4e5d5dbe5ec8226fe63d68c13b64a15fef..a44a5cd722b013e6498b5f85d5aa6ed307c9d123 100644
--- a/gpu/command_buffer/service/memory_tracking.h
+++ b/gpu/command_buffer/service/memory_tracking.h
@@ -30,6 +30,13 @@ class MemoryTracker : public base::RefCounted<MemoryTracker> {
// Ensure a certain amount of GPU memory is free. Returns true on success.
virtual bool EnsureGPUMemoryAvailable(size_t size_needed) = 0;
+ // Tracing id which identifies the GPU client for whom memory is being
+ // allocated.
+ virtual uint64_t ClientTracingId() const = 0;
+
+ // Raw ID identifying the GPU client for whom memory is being allocated.
+ virtual int ClientId() const = 0;
+
protected:
friend class base::RefCounted<MemoryTracker>;
MemoryTracker() {}
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_unittest.cc ('k') | gpu/command_buffer/service/mocks.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698