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

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

Issue 11613021: Removing the JumpRelative, Call, CallRelative and Return commands. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use Noops instead of Jump; Remove Jump command. Created 7 years, 12 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
diff --git a/gpu/command_buffer/client/cmd_buffer_helper.h b/gpu/command_buffer/client/cmd_buffer_helper.h
index 8e7cd78caf70eb6f3c943ee28ea9b156d9394227..1caecc2df86b9ff4110791dbf77183b8d8a6206b 100644
--- a/gpu/command_buffer/client/cmd_buffer_helper.h
+++ b/gpu/command_buffer/client/cmd_buffer_helper.h
@@ -149,41 +149,6 @@ class GPU_EXPORT CommandBufferHelper {
}
}
- void Jump(uint32 offset) {
- cmd::Jump* cmd = GetCmdSpace<cmd::Jump>();
- if (cmd) {
- cmd->Init(offset);
- }
- }
-
- void JumpRelative(int32 offset) {
- cmd::JumpRelative* cmd = GetCmdSpace<cmd::JumpRelative>();
- if (cmd) {
- cmd->Init(offset);
- }
- }
-
- void Call(uint32 offset) {
- cmd::Call* cmd = GetCmdSpace<cmd::Call>();
- if (cmd) {
- cmd->Init(offset);
- }
- }
-
- void CallRelative(int32 offset) {
- cmd::CallRelative* cmd = GetCmdSpace<cmd::CallRelative>();
- if (cmd) {
- cmd->Init(offset);
- }
- }
-
- void Return() {
- cmd::Return* cmd = GetCmdSpace<cmd::Return>();
- if (cmd) {
- cmd->Init();
- }
- }
-
void SetBucketSize(uint32 bucket_id, uint32 size) {
cmd::SetBucketSize* cmd = GetCmdSpace<cmd::SetBucketSize>();
if (cmd) {
@@ -276,8 +241,7 @@ class GPU_EXPORT CommandBufferHelper {
// Returns the number of available entries (they may not be contiguous).
int32 AvailableEntries() {
- return (get_offset() - put_ - 1 + usable_entry_count_) %
- usable_entry_count_;
+ return (get_offset() - put_ - 1 + total_entry_count_) % total_entry_count_;
}
bool AllocateRingBuffer();
@@ -289,7 +253,6 @@ class GPU_EXPORT CommandBufferHelper {
Buffer ring_buffer_;
CommandBufferEntry* entries_;
int32 total_entry_count_; // the total number of entries
- int32 usable_entry_count_; // the usable number (ie, minus space for jump)
int32 token_;
int32 put_;
int32 last_put_sent_;
« 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