| OLD | NEW |
| 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 #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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 | 161 |
| 162 FramebufferCompletenessCache* framebuffer_completeness_cache() const { | 162 FramebufferCompletenessCache* framebuffer_completeness_cache() const { |
| 163 return group_->framebuffer_completeness_cache(); | 163 return group_->framebuffer_completeness_cache(); |
| 164 } | 164 } |
| 165 | 165 |
| 166 ImageManager* GetImageManager() { return decoder_->GetImageManager(); } | 166 ImageManager* GetImageManager() { return decoder_->GetImageManager(); } |
| 167 | 167 |
| 168 void DoCreateProgram(GLuint client_id, GLuint service_id); | 168 void DoCreateProgram(GLuint client_id, GLuint service_id); |
| 169 void DoCreateShader(GLenum shader_type, GLuint client_id, GLuint service_id); | 169 void DoCreateShader(GLenum shader_type, GLuint client_id, GLuint service_id); |
| 170 void DoFenceSync(GLuint client_id, GLuint service_id); | 170 void DoFenceSync(GLuint client_id, GLuint service_id); |
| 171 void DoCreateSampler(GLuint client_id, GLuint service_id); |
| 172 void DoCreateTransformFeedback(GLuint client_id, GLuint service_id); |
| 171 | 173 |
| 172 void SetBucketData(uint32_t bucket_id, const void* data, uint32_t data_size); | 174 void SetBucketData(uint32_t bucket_id, const void* data, uint32_t data_size); |
| 173 void SetBucketAsCString(uint32_t bucket_id, const char* str); | 175 void SetBucketAsCString(uint32_t bucket_id, const char* str); |
| 174 // If we want a valid bucket, just set |count_in_header| as |count|, | 176 // If we want a valid bucket, just set |count_in_header| as |count|, |
| 175 // and set |str_end| as 0. | 177 // and set |str_end| as 0. |
| 176 void SetBucketAsCStrings(uint32_t bucket_id, | 178 void SetBucketAsCStrings(uint32_t bucket_id, |
| 177 GLsizei count, | 179 GLsizei count, |
| 178 const char** str, | 180 const char** str, |
| 179 GLsizei count_in_header, | 181 GLsizei count_in_header, |
| 180 char str_end); | 182 char str_end); |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 void DoRenderbufferStorageMultisampleCHROMIUM(GLenum target, | 264 void DoRenderbufferStorageMultisampleCHROMIUM(GLenum target, |
| 263 GLsizei samples, | 265 GLsizei samples, |
| 264 GLenum internal_format, | 266 GLenum internal_format, |
| 265 GLenum gl_format, | 267 GLenum gl_format, |
| 266 GLsizei width, | 268 GLsizei width, |
| 267 GLsizei height); | 269 GLsizei height); |
| 268 void RestoreRenderbufferBindings(); | 270 void RestoreRenderbufferBindings(); |
| 269 void EnsureRenderbufferBound(bool expect_bind); | 271 void EnsureRenderbufferBound(bool expect_bind); |
| 270 void DoBindTexture(GLenum target, GLuint client_id, GLuint service_id); | 272 void DoBindTexture(GLenum target, GLuint client_id, GLuint service_id); |
| 271 void DoBindVertexArrayOES(GLuint client_id, GLuint service_id); | 273 void DoBindVertexArrayOES(GLuint client_id, GLuint service_id); |
| 274 void DoBindSampler(GLuint unit, GLuint client_id, GLuint service_id); |
| 275 void DoBindTransformFeedback( |
| 276 GLenum target, GLuint client_id, GLuint service_id); |
| 272 | 277 |
| 273 bool DoIsBuffer(GLuint client_id); | 278 bool DoIsBuffer(GLuint client_id); |
| 274 bool DoIsFramebuffer(GLuint client_id); | 279 bool DoIsFramebuffer(GLuint client_id); |
| 275 bool DoIsProgram(GLuint client_id); | 280 bool DoIsProgram(GLuint client_id); |
| 276 bool DoIsRenderbuffer(GLuint client_id); | 281 bool DoIsRenderbuffer(GLuint client_id); |
| 277 bool DoIsShader(GLuint client_id); | 282 bool DoIsShader(GLuint client_id); |
| 278 bool DoIsTexture(GLuint client_id); | 283 bool DoIsTexture(GLuint client_id); |
| 279 | 284 |
| 280 void DoDeleteBuffer(GLuint client_id, GLuint service_id); | 285 void DoDeleteBuffer(GLuint client_id, GLuint service_id); |
| 281 void DoDeleteFramebuffer( | 286 void DoDeleteFramebuffer( |
| 282 GLuint client_id, GLuint service_id, | 287 GLuint client_id, GLuint service_id, |
| 283 bool reset_draw, GLenum draw_target, GLuint draw_id, | 288 bool reset_draw, GLenum draw_target, GLuint draw_id, |
| 284 bool reset_read, GLenum read_target, GLuint read_id); | 289 bool reset_read, GLenum read_target, GLuint read_id); |
| 285 void DoDeleteProgram(GLuint client_id, GLuint service_id); | 290 void DoDeleteProgram(GLuint client_id, GLuint service_id); |
| 286 void DoDeleteRenderbuffer(GLuint client_id, GLuint service_id); | 291 void DoDeleteRenderbuffer(GLuint client_id, GLuint service_id); |
| 287 void DoDeleteShader(GLuint client_id, GLuint service_id); | 292 void DoDeleteShader(GLuint client_id, GLuint service_id); |
| 288 void DoDeleteTexture(GLuint client_id, GLuint service_id); | 293 void DoDeleteTexture(GLuint client_id, GLuint service_id); |
| 294 void DoDeleteSampler(GLuint client_id, GLuint service_id); |
| 295 void DoDeleteTransformFeedback(GLuint client_id, GLuint service_id); |
| 289 | 296 |
| 290 void DoCompressedTexImage2D(GLenum target, | 297 void DoCompressedTexImage2D(GLenum target, |
| 291 GLint level, | 298 GLint level, |
| 292 GLenum format, | 299 GLenum format, |
| 293 GLsizei width, | 300 GLsizei width, |
| 294 GLsizei height, | 301 GLsizei height, |
| 295 GLint border, | 302 GLint border, |
| 296 GLsizei size, | 303 GLsizei size, |
| 297 uint32_t bucket_id); | 304 uint32_t bucket_id); |
| 298 void DoBindTexImage2DCHROMIUM(GLenum target, GLint image_id); | 305 void DoBindTexImage2DCHROMIUM(GLenum target, GLint image_id); |
| (...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 777 if (arg[i] != array[i]) | 784 if (arg[i] != array[i]) |
| 778 return false; | 785 return false; |
| 779 } | 786 } |
| 780 return true; | 787 return true; |
| 781 } | 788 } |
| 782 | 789 |
| 783 } // namespace gles2 | 790 } // namespace gles2 |
| 784 } // namespace gpu | 791 } // namespace gpu |
| 785 | 792 |
| 786 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ | 793 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ |
| OLD | NEW |