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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 ::gfx::MockGLInterface* gl, MockErrorState* error_state, | 136 ::gfx::MockGLInterface* gl, MockErrorState* error_state, |
137 BufferManager* manager, Buffer* buffer, GLenum target, GLsizeiptr size, | 137 BufferManager* manager, Buffer* buffer, GLenum target, GLsizeiptr size, |
138 GLenum usage, const GLvoid* data, GLenum error); | 138 GLenum usage, const GLvoid* data, GLenum error); |
139 | 139 |
140 static void SetTexParameteriWithExpectations( | 140 static void SetTexParameteriWithExpectations( |
141 ::gfx::MockGLInterface* gl, MockErrorState* error_state, | 141 ::gfx::MockGLInterface* gl, MockErrorState* error_state, |
142 TextureManager* manager, TextureRef* texture_ref, | 142 TextureManager* manager, TextureRef* texture_ref, |
143 GLenum pname, GLint value, GLenum error); | 143 GLenum pname, GLint value, GLenum error); |
144 | 144 |
145 static void SetShaderStates( | 145 static void SetShaderStates( |
146 ::gfx::MockGLInterface* gl, Shader* shader, | 146 ::gfx::MockGLInterface* gl, |
| 147 Shader* shader, |
147 bool expected_valid, | 148 bool expected_valid, |
148 const std::string* const expected_log_info, | 149 const std::string* const expected_log_info, |
149 const std::string* const expected_translated_source, | 150 const std::string* const expected_translated_source, |
150 const int* const expected_shader_version, | 151 const int* const expected_shader_version, |
151 const AttributeMap* const expected_attrib_map, | 152 const AttributeMap* const expected_attrib_map, |
152 const UniformMap* const expected_uniform_map, | 153 const UniformMap* const expected_uniform_map, |
153 const VaryingMap* const expected_varying_map, | 154 const VaryingMap* const expected_varying_map, |
| 155 const AttributeList* const expected_output_variable_list, |
154 const NameMap* const expected_name_map); | 156 const NameMap* const expected_name_map); |
155 | 157 |
156 static void SetShaderStates( | 158 static void SetShaderStates( |
157 ::gfx::MockGLInterface* gl, Shader* shader, bool valid); | 159 ::gfx::MockGLInterface* gl, Shader* shader, bool valid); |
158 | 160 |
159 static sh::Attribute ConstructAttribute( | 161 static sh::Attribute ConstructAttribute( |
160 GLenum type, GLint array_size, GLenum precision, | 162 GLenum type, GLint array_size, GLenum precision, |
161 bool static_use, const std::string& name); | 163 bool static_use, const std::string& name); |
162 static sh::Uniform ConstructUniform( | 164 static sh::Uniform ConstructUniform( |
163 GLenum type, GLint array_size, GLenum precision, | 165 GLenum type, GLint array_size, GLenum precision, |
(...skipping 23 matching lines...) Expand all Loading... |
187 | 189 |
188 private: | 190 private: |
189 gfx::GLImplementation old_implementation_; | 191 gfx::GLImplementation old_implementation_; |
190 }; | 192 }; |
191 | 193 |
192 } // namespace gles2 | 194 } // namespace gles2 |
193 } // namespace gpu | 195 } // namespace gpu |
194 | 196 |
195 #endif // GPU_COMMAND_BUFFER_SERVICE_TEST_HELPER_H_ | 197 #endif // GPU_COMMAND_BUFFER_SERVICE_TEST_HELPER_H_ |
196 | 198 |
OLD | NEW |