| 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 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 | 328 |
| 329 void SetupVertexBuffer(); | 329 void SetupVertexBuffer(); |
| 330 void SetupAllNeededVertexBuffers(); | 330 void SetupAllNeededVertexBuffers(); |
| 331 | 331 |
| 332 void SetupIndexBuffer(); | 332 void SetupIndexBuffer(); |
| 333 | 333 |
| 334 void DeleteVertexBuffer(); | 334 void DeleteVertexBuffer(); |
| 335 | 335 |
| 336 void DeleteIndexBuffer(); | 336 void DeleteIndexBuffer(); |
| 337 | 337 |
| 338 void SetupClearTextureExpectations( | 338 void SetupClearTextureExpectations(GLuint service_id, |
| 339 GLuint service_id, | 339 GLuint old_service_id, |
| 340 GLuint old_service_id, | 340 GLenum bind_target, |
| 341 GLenum bind_target, | 341 GLenum target, |
| 342 GLenum target, | 342 GLint level, |
| 343 GLint level, | 343 GLenum internal_format, |
| 344 GLenum internal_format, | 344 GLenum format, |
| 345 GLenum format, | 345 GLenum type, |
| 346 GLenum type, | 346 GLint xoffset, |
| 347 GLsizei width, | 347 GLint yoffset, |
| 348 GLsizei height); | 348 GLsizei width, |
| 349 GLsizei height); |
| 349 | 350 |
| 350 void SetupExpectationsForRestoreClearState( | 351 void SetupExpectationsForRestoreClearState( |
| 351 GLclampf restore_red, | 352 GLclampf restore_red, |
| 352 GLclampf restore_green, | 353 GLclampf restore_green, |
| 353 GLclampf restore_blue, | 354 GLclampf restore_blue, |
| 354 GLclampf restore_alpha, | 355 GLclampf restore_alpha, |
| 355 GLuint restore_stencil, | 356 GLuint restore_stencil, |
| 356 GLclampf restore_depth, | 357 GLclampf restore_depth, |
| 357 bool restore_scissor_test); | 358 bool restore_scissor_test); |
| 358 | 359 |
| (...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 682 }; | 683 }; |
| 683 | 684 |
| 684 // SpecializedSetup specializations that are needed in multiple unittest files. | 685 // SpecializedSetup specializations that are needed in multiple unittest files. |
| 685 template <> | 686 template <> |
| 686 void GLES2DecoderTestBase::SpecializedSetup<cmds::LinkProgram, 0>(bool valid); | 687 void GLES2DecoderTestBase::SpecializedSetup<cmds::LinkProgram, 0>(bool valid); |
| 687 | 688 |
| 688 } // namespace gles2 | 689 } // namespace gles2 |
| 689 } // namespace gpu | 690 } // namespace gpu |
| 690 | 691 |
| 691 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ | 692 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ |
| OLD | NEW |