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

Unified Diff: content/common/gpu/client/gpu_channel_host.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/client/gpu_channel_host.cc
diff --git a/content/common/gpu/client/gpu_channel_host.cc b/content/common/gpu/client/gpu_channel_host.cc
index 6b1706cdbb614fb320611d359ac5ceb45b6eb5f8..05145f85b03645a393d385cea9e64706b90a1143 100644
--- a/content/common/gpu/client/gpu_channel_host.cc
+++ b/content/common/gpu/client/gpu_channel_host.cc
@@ -238,9 +238,13 @@ scoped_ptr<CommandBufferProxyImpl> GpuChannelHost::CreateOffscreenCommandBuffer(
int32 route_id = GenerateRouteID();
+ scoped_ptr<CommandBufferProxyImpl> command_buffer =
+ make_scoped_ptr(new CommandBufferProxyImpl(this, route_id, stream_id));
+
bool succeeded = false;
if (!Send(new GpuChannelMsg_CreateOffscreenCommandBuffer(
- size, init_params, route_id, &succeeded))) {
+ size, init_params, route_id, command_buffer->command_buffer_id(),
+ &succeeded))) {
LOG(ERROR) << "Failed to send GpuChannelMsg_CreateOffscreenCommandBuffer.";
return NULL;
}
@@ -251,8 +255,6 @@ scoped_ptr<CommandBufferProxyImpl> GpuChannelHost::CreateOffscreenCommandBuffer(
return NULL;
}
- scoped_ptr<CommandBufferProxyImpl> command_buffer =
- make_scoped_ptr(new CommandBufferProxyImpl(this, route_id, stream_id));
AddRoute(route_id, command_buffer->AsWeakPtr());
return command_buffer.Pass();

Powered by Google App Engine
This is Rietveld 408576698