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

Unified Diff: ppapi/proxy/ppb_context_3d_proxy.h

Issue 8566059: Add CommandBuffer::SetGetBuffer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: etc Created 9 years, 1 month 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/ppb_context_3d_proxy.h
diff --git a/ppapi/proxy/ppb_context_3d_proxy.h b/ppapi/proxy/ppb_context_3d_proxy.h
index 4747b4b9433322e81fa4085523cf9d0f615882a9..1556dad33a2862557b486d1bcfca613fc7f3d023 100644
--- a/ppapi/proxy/ppb_context_3d_proxy.h
+++ b/ppapi/proxy/ppb_context_3d_proxy.h
@@ -49,9 +49,8 @@ class Context3D : public Resource, public thunk::PPB_Context3D_API {
virtual int32_t BindSurfaces(PP_Resource draw, PP_Resource read) OVERRIDE;
virtual int32_t GetBoundSurfaces(PP_Resource* draw,
PP_Resource* read) OVERRIDE;
- virtual PP_Bool InitializeTrusted(int32_t size) OVERRIDE;
- virtual PP_Bool GetRingBuffer(int* shm_handle,
- uint32_t* shm_size) OVERRIDE;
+ virtual PP_Bool InitializeTrusted() OVERRIDE;
+ virtual PP_Bool SetGetBuffer(int32_t shm_id) OVERRIDE;
virtual PP_Context3DTrustedState GetState() OVERRIDE;
virtual PP_Bool Flush(int32_t put_offset) OVERRIDE;
virtual PP_Context3DTrustedState FlushSync(int32_t put_offset) OVERRIDE;
@@ -113,9 +112,9 @@ class PPB_Context3D_Proxy : public InterfaceProxy {
const HostResource& draw,
const HostResource& read,
int32_t* result);
- void OnMsgInitialize(const HostResource& context,
- int32 size,
- base::SharedMemoryHandle* ring_buffer);
+ void OnMsgInitialize(const HostResource& context);
+ void OnMsgSetGetBuffer(const HostResource& context,
+ int32_t shm_id);
void OnMsgGetState(const HostResource& context,
gpu::CommandBuffer::State* state);
void OnMsgFlush(const HostResource& context,

Powered by Google App Engine
This is Rietveld 408576698