| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 730 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 741 | 741 |
| 742 private: | 742 private: |
| 743 GLuint bound_array_buffer_object_; | 743 GLuint bound_array_buffer_object_; |
| 744 GLuint bound_vertex_array_object_; | 744 GLuint bound_vertex_array_object_; |
| 745 }; // class MockGLStates | 745 }; // class MockGLStates |
| 746 | 746 |
| 747 void AddExpectationsForVertexAttribManager(); | 747 void AddExpectationsForVertexAttribManager(); |
| 748 void SetupMockGLBehaviors(); | 748 void SetupMockGLBehaviors(); |
| 749 | 749 |
| 750 void SetupInitStateManualExpectations(bool es3_capable); | 750 void SetupInitStateManualExpectations(bool es3_capable); |
| 751 void SetupInitStateManualExpectationsForDoLineWidth(GLfloat width); |
| 751 | 752 |
| 752 std::unique_ptr<::testing::StrictMock<MockCommandBufferEngine>> engine_; | 753 std::unique_ptr<::testing::StrictMock<MockCommandBufferEngine>> engine_; |
| 753 GpuPreferences gpu_preferences_; | 754 GpuPreferences gpu_preferences_; |
| 754 scoped_refptr<ContextGroup> group_; | 755 scoped_refptr<ContextGroup> group_; |
| 755 MockGLStates gl_states_; | 756 MockGLStates gl_states_; |
| 756 base::MessageLoop message_loop_; | 757 base::MessageLoop message_loop_; |
| 757 }; | 758 }; |
| 758 | 759 |
| 759 class GLES2DecoderWithShaderTestBase : public GLES2DecoderTestBase { | 760 class GLES2DecoderWithShaderTestBase : public GLES2DecoderTestBase { |
| 760 public: | 761 public: |
| (...skipping 15 matching lines...) Expand all Loading... |
| 776 if (arg[i] != array[i]) | 777 if (arg[i] != array[i]) |
| 777 return false; | 778 return false; |
| 778 } | 779 } |
| 779 return true; | 780 return true; |
| 780 } | 781 } |
| 781 | 782 |
| 782 } // namespace gles2 | 783 } // namespace gles2 |
| 783 } // namespace gpu | 784 } // namespace gpu |
| 784 | 785 |
| 785 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ | 786 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ |
| OLD | NEW |