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

Unified Diff: gpu/command_buffer/common/command_buffer.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/client/ring_buffer_test.cc ('k') | gpu/command_buffer/common/command_buffer_mock.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/common/command_buffer.h
===================================================================
--- gpu/command_buffer/common/command_buffer.h (revision 113511)
+++ gpu/command_buffer/common/command_buffer.h (working copy)
@@ -67,8 +67,14 @@
}
// Initialize the command buffer with the given size.
- virtual bool Initialize() = 0;
+ virtual bool Initialize(int32 size) = 0;
+ // Initialize the command buffer using the given preallocated buffer.
+ virtual bool Initialize(base::SharedMemory* buffer, int32 size) = 0;
+
+ // Gets the ring buffer for the command buffer.
+ virtual Buffer GetRingBuffer() = 0;
+
// Returns the current status.
virtual State GetState() = 0;
@@ -86,10 +92,6 @@
// have been executed.
virtual State FlushSync(int32 put_offset, int32 last_known_get) = 0;
- // Sets the buffer commands are read from.
- // Also resets the get and put offsets to 0.
- virtual void SetGetBuffer(int32 transfer_buffer_id) = 0;
-
// Sets the current get offset. This can be called from any thread.
virtual void SetGetOffset(int32 get_offset) = 0;
« no previous file with comments | « gpu/command_buffer/client/ring_buffer_test.cc ('k') | gpu/command_buffer/common/command_buffer_mock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698