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

Unified Diff: o3d/command_buffer/service/cross/cmd_buffer_engine.h

Issue 234001: GPUProcessor uses O3D command buffer service to render to a window.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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
« no previous file with comments | « no previous file | o3d/command_buffer/service/cross/gapi_decoder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: o3d/command_buffer/service/cross/cmd_buffer_engine.h
===================================================================
--- o3d/command_buffer/service/cross/cmd_buffer_engine.h (revision 26805)
+++ o3d/command_buffer/service/cross/cmd_buffer_engine.h (working copy)
@@ -46,8 +46,34 @@
class BufferRPCImpl;
-class CommandBufferEngine : public BufferSyncInterface {
+class CommandBufferUpcallInterface {
public:
+ CommandBufferUpcallInterface() {
+ }
+
+ virtual ~CommandBufferUpcallInterface() {
+ }
+
+ // Gets the base address of a registered shared memory buffer.
+ // Parameters:
+ // shm_id: the identifier for the shared memory buffer.
+ virtual void *GetSharedMemoryAddress(unsigned int shm_id) = 0;
+
+ // Gets the size of a registered shared memory buffer.
+ // Parameters:
+ // shm_id: the identifier for the shared memory buffer.
+ virtual size_t GetSharedMemorySize(unsigned int shm_id) = 0;
+
+ // Sets the token value.
+ virtual void set_token(unsigned int token) = 0;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(CommandBufferUpcallInterface);
+};
+
+class CommandBufferEngine : public BufferSyncInterface,
+ public CommandBufferUpcallInterface {
+ public:
explicit CommandBufferEngine(AsyncAPIInterface *handler);
virtual ~CommandBufferEngine();
« no previous file with comments | « no previous file | o3d/command_buffer/service/cross/gapi_decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698