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 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
332 GLuint restore_stencil, | 332 GLuint restore_stencil, |
333 GLclampf restore_depth, | 333 GLclampf restore_depth, |
334 bool restore_scissor_test); | 334 bool restore_scissor_test); |
335 | 335 |
336 void SetupExpectationsForDepthMask(bool mask); | 336 void SetupExpectationsForDepthMask(bool mask); |
337 void SetupExpectationsForEnableDisable(GLenum cap, bool enable); | 337 void SetupExpectationsForEnableDisable(GLenum cap, bool enable); |
338 void SetupExpectationsForColorMask(bool red, | 338 void SetupExpectationsForColorMask(bool red, |
339 bool green, | 339 bool green, |
340 bool blue, | 340 bool blue, |
341 bool alpha); | 341 bool alpha); |
| 342 void SetupExpectationsForStencilMask(uint32 front_mask, |
| 343 uint32 back_mask); |
342 | 344 |
343 void SetupExpectationsForApplyingDirtyState( | 345 void SetupExpectationsForApplyingDirtyState( |
344 bool framebuffer_is_rgb, | 346 bool framebuffer_is_rgb, |
345 bool framebuffer_has_depth, | 347 bool framebuffer_has_depth, |
346 bool framebuffer_has_stencil, | 348 bool framebuffer_has_stencil, |
347 GLuint color_bits, // NOTE! bits are 0x1000, 0x0100, 0x0010, and 0x0001 | 349 GLuint color_bits, // NOTE! bits are 0x1000, 0x0100, 0x0010, and 0x0001 |
348 bool depth_mask, | 350 bool depth_mask, |
349 bool depth_enabled, | 351 bool depth_enabled, |
350 GLuint front_stencil_mask, | 352 GLuint front_stencil_mask, |
351 GLuint back_stencil_mask, | 353 GLuint back_stencil_mask, |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
626 }; | 628 }; |
627 | 629 |
628 // SpecializedSetup specializations that are needed in multiple unittest files. | 630 // SpecializedSetup specializations that are needed in multiple unittest files. |
629 template <> | 631 template <> |
630 void GLES2DecoderTestBase::SpecializedSetup<cmds::LinkProgram, 0>(bool valid); | 632 void GLES2DecoderTestBase::SpecializedSetup<cmds::LinkProgram, 0>(bool valid); |
631 | 633 |
632 } // namespace gles2 | 634 } // namespace gles2 |
633 } // namespace gpu | 635 } // namespace gpu |
634 | 636 |
635 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ | 637 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ |
OLD | NEW |