| 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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 typedef TestHelper::AttribInfo AttribInfo; | 190 typedef TestHelper::AttribInfo AttribInfo; |
| 191 typedef TestHelper::UniformInfo UniformInfo; | 191 typedef TestHelper::UniformInfo UniformInfo; |
| 192 | 192 |
| 193 void SetupShader( | 193 void SetupShader( |
| 194 AttribInfo* attribs, size_t num_attribs, | 194 AttribInfo* attribs, size_t num_attribs, |
| 195 UniformInfo* uniforms, size_t num_uniforms, | 195 UniformInfo* uniforms, size_t num_uniforms, |
| 196 GLuint client_id, GLuint service_id, | 196 GLuint client_id, GLuint service_id, |
| 197 GLuint vertex_shader_client_id, GLuint vertex_shader_service_id, | 197 GLuint vertex_shader_client_id, GLuint vertex_shader_service_id, |
| 198 GLuint fragment_shader_client_id, GLuint fragment_shader_service_id); | 198 GLuint fragment_shader_client_id, GLuint fragment_shader_service_id); |
| 199 | 199 |
| 200 void SetupExpectationsForClearingUniforms( |
| 201 UniformInfo* uniforms, size_t num_uniforms) { |
| 202 TestHelper::SetupExpectationsForClearingUniforms( |
| 203 gl_.get(), uniforms, num_uniforms); |
| 204 } |
| 205 |
| 200 void SetupInitCapabilitiesExpectations(); | 206 void SetupInitCapabilitiesExpectations(); |
| 201 void SetupInitStateExpectations(); | 207 void SetupInitStateExpectations(); |
| 202 void ExpectEnableDisable(GLenum cap, bool enable); | 208 void ExpectEnableDisable(GLenum cap, bool enable); |
| 203 | 209 |
| 204 // Setups up a shader for testing glUniform. | 210 // Setups up a shader for testing glUniform. |
| 205 void SetupShaderForUniform(GLenum uniform_type); | 211 void SetupShaderForUniform(GLenum uniform_type); |
| 206 void SetupDefaultProgram(); | 212 void SetupDefaultProgram(); |
| 207 void SetupCubemapProgram(); | 213 void SetupCubemapProgram(); |
| 208 void SetupSamplerExternalProgram(); | 214 void SetupSamplerExternalProgram(); |
| 209 void SetupTexture(); | 215 void SetupTexture(); |
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 551 protected: | 557 protected: |
| 552 virtual void SetUp() OVERRIDE; | 558 virtual void SetUp() OVERRIDE; |
| 553 virtual void TearDown() OVERRIDE; | 559 virtual void TearDown() OVERRIDE; |
| 554 | 560 |
| 555 }; | 561 }; |
| 556 | 562 |
| 557 } // namespace gles2 | 563 } // namespace gles2 |
| 558 } // namespace gpu | 564 } // namespace gpu |
| 559 | 565 |
| 560 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ | 566 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ |
| OLD | NEW |