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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 } | 218 } |
219 | 219 |
220 ::testing::StrictMock< ::gfx::MockGLInterface>* GetGLMock() const { | 220 ::testing::StrictMock< ::gfx::MockGLInterface>* GetGLMock() const { |
221 return gl_.get(); | 221 return gl_.get(); |
222 } | 222 } |
223 | 223 |
224 GLES2Decoder* GetDecoder() const { | 224 GLES2Decoder* GetDecoder() const { |
225 return decoder_.get(); | 225 return decoder_.get(); |
226 } | 226 } |
227 | 227 |
| 228 uint32 GetAndClearBackbufferClearBitsForTest() const { |
| 229 return decoder_->GetAndClearBackbufferClearBitsForTest(); |
| 230 } |
| 231 |
228 typedef TestHelper::AttribInfo AttribInfo; | 232 typedef TestHelper::AttribInfo AttribInfo; |
229 typedef TestHelper::UniformInfo UniformInfo; | 233 typedef TestHelper::UniformInfo UniformInfo; |
230 | 234 |
231 void SetupShader( | 235 void SetupShader( |
232 AttribInfo* attribs, size_t num_attribs, | 236 AttribInfo* attribs, size_t num_attribs, |
233 UniformInfo* uniforms, size_t num_uniforms, | 237 UniformInfo* uniforms, size_t num_uniforms, |
234 GLuint client_id, GLuint service_id, | 238 GLuint client_id, GLuint service_id, |
235 GLuint vertex_shader_client_id, GLuint vertex_shader_service_id, | 239 GLuint vertex_shader_client_id, GLuint vertex_shader_service_id, |
236 GLuint fragment_shader_client_id, GLuint fragment_shader_service_id); | 240 GLuint fragment_shader_client_id, GLuint fragment_shader_service_id); |
237 | 241 |
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
721 }; | 725 }; |
722 | 726 |
723 // SpecializedSetup specializations that are needed in multiple unittest files. | 727 // SpecializedSetup specializations that are needed in multiple unittest files. |
724 template <> | 728 template <> |
725 void GLES2DecoderTestBase::SpecializedSetup<cmds::LinkProgram, 0>(bool valid); | 729 void GLES2DecoderTestBase::SpecializedSetup<cmds::LinkProgram, 0>(bool valid); |
726 | 730 |
727 } // namespace gles2 | 731 } // namespace gles2 |
728 } // namespace gpu | 732 } // namespace gpu |
729 | 733 |
730 #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 |