| 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 "gpu/command_buffer/common/gles2_cmd_format.h" | 8 #include "gpu/command_buffer/common/gles2_cmd_format.h" |
| 9 #include "gpu/command_buffer/common/gles2_cmd_utils.h" | 9 #include "gpu/command_buffer/common/gles2_cmd_utils.h" |
| 10 #include "gpu/command_buffer/service/buffer_manager.h" | 10 #include "gpu/command_buffer/service/buffer_manager.h" |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 typedef TestHelper::UniformInfo UniformInfo; | 233 typedef TestHelper::UniformInfo UniformInfo; |
| 234 | 234 |
| 235 void SetupShader( | 235 void SetupShader( |
| 236 AttribInfo* attribs, size_t num_attribs, | 236 AttribInfo* attribs, size_t num_attribs, |
| 237 UniformInfo* uniforms, size_t num_uniforms, | 237 UniformInfo* uniforms, size_t num_uniforms, |
| 238 GLuint client_id, GLuint service_id, | 238 GLuint client_id, GLuint service_id, |
| 239 GLuint vertex_shader_client_id, GLuint vertex_shader_service_id, | 239 GLuint vertex_shader_client_id, GLuint vertex_shader_service_id, |
| 240 GLuint fragment_shader_client_id, GLuint fragment_shader_service_id); | 240 GLuint fragment_shader_client_id, GLuint fragment_shader_service_id); |
| 241 | 241 |
| 242 void SetupInitCapabilitiesExpectations(bool es3_capable); | 242 void SetupInitCapabilitiesExpectations(bool es3_capable); |
| 243 void SetupInitStateExpectations(); | 243 void SetupInitStateExpectations(bool es3_capable); |
| 244 void ExpectEnableDisable(GLenum cap, bool enable); | 244 void ExpectEnableDisable(GLenum cap, bool enable); |
| 245 | 245 |
| 246 // Setups up a shader for testing glUniform. | 246 // Setups up a shader for testing glUniform. |
| 247 void SetupShaderForUniform(GLenum uniform_type); | 247 void SetupShaderForUniform(GLenum uniform_type); |
| 248 void SetupDefaultProgram(); | 248 void SetupDefaultProgram(); |
| 249 void SetupCubemapProgram(); | 249 void SetupCubemapProgram(); |
| 250 void SetupSamplerExternalProgram(); | 250 void SetupSamplerExternalProgram(); |
| 251 void SetupTexture(); | 251 void SetupTexture(); |
| 252 | 252 |
| 253 // Note that the error is returned as GLint instead of GLenum. | 253 // Note that the error is returned as GLint instead of GLenum. |
| (...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 725 }; | 725 }; |
| 726 | 726 |
| 727 // SpecializedSetup specializations that are needed in multiple unittest files. | 727 // SpecializedSetup specializations that are needed in multiple unittest files. |
| 728 template <> | 728 template <> |
| 729 void GLES2DecoderTestBase::SpecializedSetup<cmds::LinkProgram, 0>(bool valid); | 729 void GLES2DecoderTestBase::SpecializedSetup<cmds::LinkProgram, 0>(bool valid); |
| 730 | 730 |
| 731 } // namespace gles2 | 731 } // namespace gles2 |
| 732 } // namespace gpu | 732 } // namespace gpu |
| 733 | 733 |
| 734 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ | 734 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ |
| OLD | NEW |