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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 static void SetTexParameteriWithExpectations( | 112 static void SetTexParameteriWithExpectations( |
113 ::gfx::MockGLInterface* gl, MockErrorState* error_state, | 113 ::gfx::MockGLInterface* gl, MockErrorState* error_state, |
114 TextureManager* manager, TextureRef* texture_ref, | 114 TextureManager* manager, TextureRef* texture_ref, |
115 GLenum pname, GLint value, GLenum error); | 115 GLenum pname, GLint value, GLenum error); |
116 | 116 |
117 static void SetShaderStates( | 117 static void SetShaderStates( |
118 ::gfx::MockGLInterface* gl, Shader* shader, | 118 ::gfx::MockGLInterface* gl, Shader* shader, |
119 bool expected_valid, | 119 bool expected_valid, |
120 const std::string* const expected_log_info, | 120 const std::string* const expected_log_info, |
121 const std::string* const expected_translated_source, | 121 const std::string* const expected_translated_source, |
| 122 const int* const expected_shader_version, |
122 const AttributeMap* const expected_attrib_map, | 123 const AttributeMap* const expected_attrib_map, |
123 const UniformMap* const expected_uniform_map, | 124 const UniformMap* const expected_uniform_map, |
124 const VaryingMap* const expected_varying_map, | 125 const VaryingMap* const expected_varying_map, |
125 const NameMap* const expected_name_map); | 126 const NameMap* const expected_name_map); |
126 | 127 |
127 static void SetShaderStates( | 128 static void SetShaderStates( |
128 ::gfx::MockGLInterface* gl, Shader* shader, bool valid); | 129 ::gfx::MockGLInterface* gl, Shader* shader, bool valid); |
129 | 130 |
130 static sh::Attribute ConstructAttribute( | 131 static sh::Attribute ConstructAttribute( |
131 GLenum type, GLint array_size, GLenum precision, | 132 GLenum type, GLint array_size, GLenum precision, |
(...skipping 26 matching lines...) Expand all Loading... |
158 | 159 |
159 private: | 160 private: |
160 gfx::GLImplementation old_implementation_; | 161 gfx::GLImplementation old_implementation_; |
161 }; | 162 }; |
162 | 163 |
163 } // namespace gles2 | 164 } // namespace gles2 |
164 } // namespace gpu | 165 } // namespace gpu |
165 | 166 |
166 #endif // GPU_COMMAND_BUFFER_SERVICE_TEST_HELPER_H_ | 167 #endif // GPU_COMMAND_BUFFER_SERVICE_TEST_HELPER_H_ |
167 | 168 |
OLD | NEW |