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

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

Issue 8865008: Revert 113479 - Revert "Revert 113250 - Add CommandBuffer::SetGetBuffer" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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/service/cmd_buffer_engine.h ('k') | gpu/command_buffer/service/cmd_parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/cmd_parser.h
===================================================================
--- gpu/command_buffer/service/cmd_parser.h (revision 113511)
+++ gpu/command_buffer/service/cmd_parser.h (working copy)
@@ -18,15 +18,13 @@
// buffer, to implement some asynchronous RPC mechanism.
class CommandParser {
public:
- explicit CommandParser(AsyncAPIInterface* handler);
+ CommandParser(void *shm_address,
+ size_t shm_size,
+ ptrdiff_t offset,
+ size_t size,
+ CommandBufferOffset start_get,
+ AsyncAPIInterface *handler);
- // Sets the buffer to read commands from.
- void SetBuffer(
- void* shm_address,
- size_t shm_size,
- ptrdiff_t offset,
- size_t size);
-
// Gets the "get" pointer. The get pointer is an index into the command
// buffer considered as an array of CommandBufferEntry.
CommandBufferOffset get() const { return get_; }
@@ -65,9 +63,9 @@
private:
CommandBufferOffset get_;
CommandBufferOffset put_;
- CommandBufferEntry* buffer_;
+ CommandBufferEntry *buffer_;
int32 entry_count_;
- AsyncAPIInterface* handler_;
+ AsyncAPIInterface *handler_;
};
// This class defines the interface for an asynchronous API handler, that
« no previous file with comments | « gpu/command_buffer/service/cmd_buffer_engine.h ('k') | gpu/command_buffer/service/cmd_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698