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

Unified Diff: content/common/gpu/gpu_command_buffer_stub.cc

Issue 1345813002: Added a unique command buffer ID for command buffers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added gpu namespace for gles2_conform_support/egl/display.cc Created 5 years, 3 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: content/common/gpu/gpu_command_buffer_stub.cc
diff --git a/content/common/gpu/gpu_command_buffer_stub.cc b/content/common/gpu/gpu_command_buffer_stub.cc
index d91a65259efff40f2100f525e8bcab7dd98e8555..3204cfe3c39696d1e8d6cff2f363ee17d41e6925 100644
--- a/content/common/gpu/gpu_command_buffer_stub.cc
+++ b/content/common/gpu/gpu_command_buffer_stub.cc
@@ -480,6 +480,7 @@ void GpuCommandBufferStub::OnInitializeFailed(IPC::Message* reply_message) {
void GpuCommandBufferStub::OnInitialize(
base::SharedMemoryHandle shared_state_handle,
+ uint64_t command_buffer_id,
IPC::Message* reply_message) {
TRACE_EVENT0("gpu", "GpuCommandBufferStub::OnInitialize");
DCHECK(!command_buffer_.get());
@@ -488,7 +489,9 @@ void GpuCommandBufferStub::OnInitialize(
new base::SharedMemory(shared_state_handle, false));
command_buffer_.reset(new gpu::CommandBufferService(
- context_group_->transfer_buffer_manager()));
+ context_group_->transfer_buffer_manager(),
+ gpu::kCommandBufferNamespace_GpuIO,
+ command_buffer_id));
bool result = command_buffer_->Initialize();
DCHECK(result);

Powered by Google App Engine
This is Rietveld 408576698