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

Unified Diff: gpu/gles2_conform_support/egl/display.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: Fixed copyright 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: gpu/gles2_conform_support/egl/display.cc
diff --git a/gpu/gles2_conform_support/egl/display.cc b/gpu/gles2_conform_support/egl/display.cc
index d943cca3be11911f56fb97c1331e65e7295ec7ab..92c7bebf0462987937cda97585e16a488cc18191 100644
--- a/gpu/gles2_conform_support/egl/display.cc
+++ b/gpu/gles2_conform_support/egl/display.cc
@@ -116,8 +116,11 @@ EGLSurface Display::CreateWindowSurface(EGLConfig config,
transfer_buffer_manager_ = manager;
manager->Initialize();
}
+ static uint64_t command_buffer_id = 0;
scoped_ptr<gpu::CommandBufferService> command_buffer(
- new gpu::CommandBufferService(transfer_buffer_manager_.get()));
+ new gpu::CommandBufferService(transfer_buffer_manager_.get(),
+ kCommandBufferNamespace_InProcess,
+ command_buffer_id++));
if (!command_buffer->Initialize())
return NULL;

Powered by Google App Engine
This is Rietveld 408576698