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

Unified Diff: ppapi/proxy/ppapi_command_buffer_proxy.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: ppapi/proxy/ppapi_command_buffer_proxy.cc
diff --git a/ppapi/proxy/ppapi_command_buffer_proxy.cc b/ppapi/proxy/ppapi_command_buffer_proxy.cc
index 7a42524bff2fe2827ffbce153f9d62f1a011b108..47dc16fda84596a5a58ec84e6a2835044c2f3e48 100644
--- a/ppapi/proxy/ppapi_command_buffer_proxy.cc
+++ b/ppapi/proxy/ppapi_command_buffer_proxy.cc
@@ -13,12 +13,15 @@
namespace ppapi {
namespace proxy {
+// TODO(dyen): to support fences on Ppapi, we need to plumb the command buffer
+// id that the ppapi command buffer forwards to.
PpapiCommandBufferProxy::PpapiCommandBufferProxy(
const ppapi::HostResource& resource,
PluginDispatcher* dispatcher,
const gpu::Capabilities& capabilities,
const SerializedHandle& shared_state)
- : capabilities_(capabilities),
+ : CommandBuffer(gpu::kCommandBufferNamespace_Invalid, 0),
+ capabilities_(capabilities),
resource_(resource),
dispatcher_(dispatcher) {
shared_state_shm_.reset(
« mojo/gles2/command_buffer_client_impl.cc ('K') | « mojo/gles2/command_buffer_client_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698