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 // This file implements mock GL Interface for unit testing. The interface | 5 // This file implements mock GL Interface for unit testing. The interface |
6 // corresponds to the set of functionally distinct GL functions defined in | 6 // corresponds to the set of functionally distinct GL functions defined in |
7 // generate_bindings.py, which may originate from either desktop GL or GLES. | 7 // generate_bindings.py, which may originate from either desktop GL or GLES. |
8 | 8 |
9 #ifndef UI_GL_GL_MOCK_H_ | 9 #ifndef UI_GL_GL_MOCK_H_ |
10 #define UI_GL_GL_MOCK_H_ | 10 #define UI_GL_GL_MOCK_H_ |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 GLint level, | 109 GLint level, |
110 GLint xoffset, | 110 GLint xoffset, |
111 GLint yoffset, | 111 GLint yoffset, |
112 GLint zoffset, | 112 GLint zoffset, |
113 GLsizei width, | 113 GLsizei width, |
114 GLsizei height, | 114 GLsizei height, |
115 GLsizei depth, | 115 GLsizei depth, |
116 GLenum format, | 116 GLenum format, |
117 GLenum type)); | 117 GLenum type)); |
118 | 118 |
119 void ReadPixelsRobustANGLE(GLint /*x*/, | |
120 GLint /*y*/, | |
121 GLsizei /*width*/, | |
122 GLsizei /*height*/, | |
123 GLenum /*format*/, | |
124 GLenum /*type*/, | |
125 GLsizei /*bufSize*/, | |
126 GLsizei* /*length*/, | |
127 GLsizei* /*columns*/, | |
128 GLsizei* /*rows*/, | |
129 void* /*pixels*/) { | |
130 NOTREACHED(); | |
131 } | |
132 | |
133 void ReadnPixelsRobustANGLE(GLint /*x*/, | |
134 GLint /*y*/, | |
135 GLsizei /*width*/, | |
136 GLsizei /*height*/, | |
137 GLenum /*format*/, | |
138 GLenum /*type*/, | |
139 GLsizei /*bufSize*/, | |
140 GLsizei* /*length*/, | |
141 GLsizei* /*columns*/, | |
142 GLsizei* /*rows*/, | |
143 void* /*data*/) { | |
144 NOTREACHED(); | |
145 } | |
146 | |
147 private: | 119 private: |
148 static MockGLInterface* interface_; | 120 static MockGLInterface* interface_; |
149 | 121 |
150 // Static mock functions that invoke the member functions of interface_. | 122 // Static mock functions that invoke the member functions of interface_. |
151 #include "gl_bindings_autogen_mock.h" | 123 #include "gl_bindings_autogen_mock.h" |
152 | 124 |
153 static void GL_BINDING_CALL Mock_glTexSubImage3DNoData( | 125 static void GL_BINDING_CALL Mock_glTexSubImage3DNoData( |
154 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, | 126 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, |
155 GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type); | 127 GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type); |
156 }; | 128 }; |
157 | 129 |
158 } // namespace gl | 130 } // namespace gl |
159 | 131 |
160 #endif // UI_GL_GL_MOCK_H_ | 132 #endif // UI_GL_GL_MOCK_H_ |
OLD | NEW |