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_TEST_HELPER_H_ | 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_TEST_HELPER_H_ |
6 #define GPU_COMMAND_BUFFER_SERVICE_TEST_HELPER_H_ | 6 #define GPU_COMMAND_BUFFER_SERVICE_TEST_HELPER_H_ |
7 | 7 |
8 #include "gpu/command_buffer/common/gl_mock.h" | 8 #include "gpu/command_buffer/common/gl_mock.h" |
9 | 9 |
10 namespace gpu { | 10 namespace gpu { |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 | 74 |
75 static void SetupExpectationsForClearingUniforms( | 75 static void SetupExpectationsForClearingUniforms( |
76 ::gfx::MockGLInterface* gl, UniformInfo* uniforms, size_t num_uniforms); | 76 ::gfx::MockGLInterface* gl, UniformInfo* uniforms, size_t num_uniforms); |
77 | 77 |
78 static void SetupShader( | 78 static void SetupShader( |
79 ::gfx::MockGLInterface* gl, | 79 ::gfx::MockGLInterface* gl, |
80 AttribInfo* attribs, size_t num_attribs, | 80 AttribInfo* attribs, size_t num_attribs, |
81 UniformInfo* uniforms, size_t num_uniforms, | 81 UniformInfo* uniforms, size_t num_uniforms, |
82 GLuint service_id); | 82 GLuint service_id); |
83 | 83 |
| 84 static void SetupProgramSuccessExpectations(::gfx::MockGLInterface* gl, |
| 85 AttribInfo* attribs, size_t num_attribs, |
| 86 UniformInfo* uniforms, size_t num_uniforms, |
| 87 GLuint service_id); |
| 88 |
84 private: | 89 private: |
85 static void SetupTextureInitializationExpectations( | 90 static void SetupTextureInitializationExpectations( |
86 ::gfx::MockGLInterface* gl, GLenum target); | 91 ::gfx::MockGLInterface* gl, GLenum target); |
87 static void SetupTextureDestructionExpectations( | 92 static void SetupTextureDestructionExpectations( |
88 ::gfx::MockGLInterface* gl, GLenum target); | 93 ::gfx::MockGLInterface* gl, GLenum target); |
89 }; | 94 }; |
90 | 95 |
91 } // namespace gles2 | 96 } // namespace gles2 |
92 } // namespace gpu | 97 } // namespace gpu |
93 | 98 |
94 #endif // GPU_COMMAND_BUFFER_SERVICE_TEST_HELPER_H_ | 99 #endif // GPU_COMMAND_BUFFER_SERVICE_TEST_HELPER_H_ |
95 | 100 |
OLD | NEW |