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

Unified Diff: gpu/command_buffer/common/buffer.cc

Issue 2535213002: [WIP] Add SharedMemoryTracker to dump base::SharedMemory usage
Patch Set: (rebase) Created 3 years, 7 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/common/buffer.h ('k') | gpu/command_buffer/service/buffer_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/common/buffer.cc
diff --git a/gpu/command_buffer/common/buffer.cc b/gpu/command_buffer/common/buffer.cc
index 13b606c3286734c4ad04723fd5248239b27143f1..7aa13f3f3080f9226d13813ceba9316445174cd5 100644
--- a/gpu/command_buffer/common/buffer.cc
+++ b/gpu/command_buffer/common/buffer.cc
@@ -14,8 +14,8 @@
namespace gpu {
-bool BufferBacking::is_shared() const {
- return false;
+base::SharedMemory* BufferBacking::shared_memory() {
+ return nullptr;
}
SharedMemoryBufferBacking::SharedMemoryBufferBacking(
@@ -25,8 +25,8 @@ SharedMemoryBufferBacking::SharedMemoryBufferBacking(
SharedMemoryBufferBacking::~SharedMemoryBufferBacking() {}
-bool SharedMemoryBufferBacking::is_shared() const {
- return true;
+base::SharedMemory* SharedMemoryBufferBacking::shared_memory() {
+ return shared_memory_.get();
}
void* SharedMemoryBufferBacking::GetMemory() const {
« no previous file with comments | « gpu/command_buffer/common/buffer.h ('k') | gpu/command_buffer/service/buffer_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698