OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ | 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ |
6 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ | 6 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ |
7 | 7 |
8 #include "gpu/command_buffer/common/gl_mock.h" | 8 #include "gpu/command_buffer/common/gl_mock.h" |
9 #include "gpu/command_buffer/common/gles2_cmd_format.h" | 9 #include "gpu/command_buffer/common/gles2_cmd_format.h" |
10 #include "gpu/command_buffer/common/gles2_cmd_utils.h" | 10 #include "gpu/command_buffer/common/gles2_cmd_utils.h" |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 void DoBindTexture(GLenum target, GLuint client_id, GLuint service_id); | 212 void DoBindTexture(GLenum target, GLuint client_id, GLuint service_id); |
213 | 213 |
214 bool DoIsBuffer(GLuint client_id); | 214 bool DoIsBuffer(GLuint client_id); |
215 bool DoIsFramebuffer(GLuint client_id); | 215 bool DoIsFramebuffer(GLuint client_id); |
216 bool DoIsProgram(GLuint client_id); | 216 bool DoIsProgram(GLuint client_id); |
217 bool DoIsRenderbuffer(GLuint client_id); | 217 bool DoIsRenderbuffer(GLuint client_id); |
218 bool DoIsShader(GLuint client_id); | 218 bool DoIsShader(GLuint client_id); |
219 bool DoIsTexture(GLuint client_id); | 219 bool DoIsTexture(GLuint client_id); |
220 | 220 |
221 void DoDeleteBuffer(GLuint client_id, GLuint service_id); | 221 void DoDeleteBuffer(GLuint client_id, GLuint service_id); |
222 void DoDeleteFramebuffer(GLuint client_id, GLuint service_id); | 222 void DoDeleteFramebuffer( |
| 223 GLuint client_id, GLuint service_id, |
| 224 bool reset_draw, GLenum draw_target, GLuint draw_id, |
| 225 bool reset_read, GLenum read_target, GLuint read_id); |
223 void DoDeleteProgram(GLuint client_id, GLuint service_id); | 226 void DoDeleteProgram(GLuint client_id, GLuint service_id); |
224 void DoDeleteRenderbuffer(GLuint client_id, GLuint service_id); | 227 void DoDeleteRenderbuffer(GLuint client_id, GLuint service_id); |
225 void DoDeleteShader(GLuint client_id, GLuint service_id); | 228 void DoDeleteShader(GLuint client_id, GLuint service_id); |
226 void DoDeleteTexture(GLuint client_id, GLuint service_id); | 229 void DoDeleteTexture(GLuint client_id, GLuint service_id); |
227 | 230 |
228 void DoTexImage2D(GLenum target, GLint level, GLenum internal_format, | 231 void DoTexImage2D(GLenum target, GLint level, GLenum internal_format, |
229 GLsizei width, GLsizei height, GLint border, | 232 GLsizei width, GLsizei height, GLint border, |
230 GLenum format, GLenum type, | 233 GLenum format, GLenum type, |
231 uint32 shared_memory_id, uint32 shared_memory_offset); | 234 uint32 shared_memory_id, uint32 shared_memory_offset); |
232 void DoVertexAttribPointer( | 235 void DoVertexAttribPointer( |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
414 void DeleteIndexBuffer(); | 417 void DeleteIndexBuffer(); |
415 | 418 |
416 GLuint client_vertex_shader_id_; | 419 GLuint client_vertex_shader_id_; |
417 GLuint client_fragment_shader_id_; | 420 GLuint client_fragment_shader_id_; |
418 }; | 421 }; |
419 | 422 |
420 } // namespace gles2 | 423 } // namespace gles2 |
421 } // namespace gpu | 424 } // namespace gpu |
422 | 425 |
423 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ | 426 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ |
OLD | NEW |