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

Unified Diff: gpu/ipc/service/gpu_command_buffer_stub.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
Index: gpu/ipc/service/gpu_command_buffer_stub.cc
diff --git a/gpu/ipc/service/gpu_command_buffer_stub.cc b/gpu/ipc/service/gpu_command_buffer_stub.cc
index a798308542982dba5e16372a4b5adece6dec6725..6ae5fa7b718ed268f13d33ce7b8e7cb72ed2d028 100644
--- a/gpu/ipc/service/gpu_command_buffer_stub.cc
+++ b/gpu/ipc/service/gpu_command_buffer_stub.cc
@@ -829,6 +829,8 @@ bool GpuCommandBufferStub::Initialize(
DLOG(ERROR) << "Failed to map shared state buffer.";
return false;
}
+ const int kImportance = 2;
+ shared_state_shm->set_importance(kImportance);
command_buffer_->SetSharedStateBuffer(MakeBackingFromSharedMemory(
std::move(shared_state_shm), kSharedStateSize));
@@ -1013,7 +1015,8 @@ void GpuCommandBufferStub::OnRegisterTransferBuffer(
DVLOG(0) << "Failed to map shared memory.";
return;
}
-
+ const int kImportance = 2;
+ shared_memory->set_importance(kImportance);
if (command_buffer_) {
command_buffer_->RegisterTransferBuffer(
id, MakeBackingFromSharedMemory(std::move(shared_memory), size));
« no previous file with comments | « gpu/ipc/client/gpu_memory_buffer_impl_shared_memory.cc ('k') | media/video/gpu_memory_buffer_video_frame_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698