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

Unified Diff: gpu/command_buffer/client/cmd_buffer_helper.h

Issue 7313032: Cooperatively round robin GPU command buffers. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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 | gpu/command_buffer/client/cmd_buffer_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/client/cmd_buffer_helper.h
===================================================================
--- gpu/command_buffer/client/cmd_buffer_helper.h (revision 91787)
+++ gpu/command_buffer/client/cmd_buffer_helper.h (working copy)
@@ -8,6 +8,7 @@
#define GPU_COMMAND_BUFFER_CLIENT_CMD_BUFFER_HELPER_H_
#include <string.h>
+#include <time.h>
#include "../common/logging.h"
#include "../common/constants.h"
@@ -87,8 +88,8 @@
// particularly useful after inserting a token that will be waited on.
void YieldScheduler();
- // Waits for a certain amount of space to be available. Returns address
- // of space.
+ // Called prior to each command being issued. Waits for a certain amount of
+ // space to be available. Returns address of space.
CommandBufferEntry* GetSpace(uint32 entries);
// Typed version of GetSpace. Gets enough room for the given type and returns
@@ -236,7 +237,11 @@
int32 get_;
int32 put_;
int32 last_put_sent_;
+ int commands_issued_;
+ // Using C runtime instead of base because this file cannot depend on base.
+ time_t last_flush_time_;
+
friend class CommandBufferHelperTest;
DISALLOW_COPY_AND_ASSIGN(CommandBufferHelper);
};
« no previous file with comments | « no previous file | gpu/command_buffer/client/cmd_buffer_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698