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

Side by Side 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: Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | gpu/command_buffer/common/cmd_buffer_common.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file contains the command buffer helper class. 5 // This file contains the command buffer helper class.
6 6
7 #ifndef GPU_COMMAND_BUFFER_CLIENT_CMD_BUFFER_HELPER_H_ 7 #ifndef GPU_COMMAND_BUFFER_CLIENT_CMD_BUFFER_HELPER_H_
8 #define GPU_COMMAND_BUFFER_CLIENT_CMD_BUFFER_HELPER_H_ 8 #define GPU_COMMAND_BUFFER_CLIENT_CMD_BUFFER_HELPER_H_
9 9
10 #include <string.h> 10 #include <string.h>
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 } 142 }
143 } 143 }
144 144
145 void SetToken(uint32 token) { 145 void SetToken(uint32 token) {
146 cmd::SetToken* cmd = GetCmdSpace<cmd::SetToken>(); 146 cmd::SetToken* cmd = GetCmdSpace<cmd::SetToken>();
147 if (cmd) { 147 if (cmd) {
148 cmd->Init(token); 148 cmd->Init(token);
149 } 149 }
150 } 150 }
151 151
152 void Jump(uint32 offset) {
greggman 2012/12/19 03:32:18 Isn't Jump still needed? You seem to be keeping Ju
dsinclair 2012/12/19 03:41:07 The code that uses Jump in cmd_buffer_helper.cc us
153 cmd::Jump* cmd = GetCmdSpace<cmd::Jump>();
154 if (cmd) {
155 cmd->Init(offset);
156 }
157 }
158
159 void JumpRelative(int32 offset) {
160 cmd::JumpRelative* cmd = GetCmdSpace<cmd::JumpRelative>();
161 if (cmd) {
162 cmd->Init(offset);
163 }
164 }
165
166 void Call(uint32 offset) {
167 cmd::Call* cmd = GetCmdSpace<cmd::Call>();
168 if (cmd) {
169 cmd->Init(offset);
170 }
171 }
172
173 void CallRelative(int32 offset) {
174 cmd::CallRelative* cmd = GetCmdSpace<cmd::CallRelative>();
175 if (cmd) {
176 cmd->Init(offset);
177 }
178 }
179
180 void Return() {
181 cmd::Return* cmd = GetCmdSpace<cmd::Return>();
182 if (cmd) {
183 cmd->Init();
184 }
185 }
186
187 void SetBucketSize(uint32 bucket_id, uint32 size) { 152 void SetBucketSize(uint32 bucket_id, uint32 size) {
188 cmd::SetBucketSize* cmd = GetCmdSpace<cmd::SetBucketSize>(); 153 cmd::SetBucketSize* cmd = GetCmdSpace<cmd::SetBucketSize>();
189 if (cmd) { 154 if (cmd) {
190 cmd->Init(bucket_id, size); 155 cmd->Init(bucket_id, size);
191 } 156 }
192 } 157 }
193 158
194 void SetBucketData(uint32 bucket_id, 159 void SetBucketData(uint32 bucket_id,
195 uint32 offset, 160 uint32 offset,
196 uint32 size, 161 uint32 size,
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 // Using C runtime instead of base because this file cannot depend on base. 266 // Using C runtime instead of base because this file cannot depend on base.
302 clock_t last_flush_time_; 267 clock_t last_flush_time_;
303 268
304 friend class CommandBufferHelperTest; 269 friend class CommandBufferHelperTest;
305 DISALLOW_COPY_AND_ASSIGN(CommandBufferHelper); 270 DISALLOW_COPY_AND_ASSIGN(CommandBufferHelper);
306 }; 271 };
307 272
308 } // namespace gpu 273 } // namespace gpu
309 274
310 #endif // GPU_COMMAND_BUFFER_CLIENT_CMD_BUFFER_HELPER_H_ 275 #endif // GPU_COMMAND_BUFFER_CLIENT_CMD_BUFFER_HELPER_H_
OLDNEW
« no previous file with comments | « no previous file | gpu/command_buffer/common/cmd_buffer_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698