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

Unified Diff: gpu/command_buffer/service/cmd_buffer_engine.h

Issue 367002: Added Pepper 3D render context that instantiates the GPU plugin.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years 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 | « gpu/command_buffer/common/resource.h ('k') | gpu/command_buffer/service/command_buffer_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/cmd_buffer_engine.h
===================================================================
--- gpu/command_buffer/service/cmd_buffer_engine.h (revision 35153)
+++ gpu/command_buffer/service/cmd_buffer_engine.h (working copy)
@@ -9,6 +9,7 @@
#define GPU_COMMAND_BUFFER_SERVICE_CMD_BUFFER_ENGINE_H_
#include "base/basictypes.h"
+#include "gpu/command_buffer/common/buffer.h"
namespace gpu {
@@ -20,16 +21,11 @@
virtual ~CommandBufferEngine() {
}
- // Gets the base address of a registered shared memory buffer.
+ // Gets the base address and size of a registered shared memory buffer.
// Parameters:
// shm_id: the identifier for the shared memory buffer.
- virtual void *GetSharedMemoryAddress(int32 shm_id) = 0;
+ virtual Buffer GetSharedMemoryBuffer(int32 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(int32 shm_id) = 0;
-
// Sets the token value.
virtual void set_token(int32 token) = 0;
« no previous file with comments | « gpu/command_buffer/common/resource.h ('k') | gpu/command_buffer/service/command_buffer_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698