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 28 matching lines...) Expand all Loading... |
39 // TODO(zmo): crbug.com/456340 | 39 // TODO(zmo): crbug.com/456340 |
40 // Functions that cannot be mocked because they have more than 10 args. | 40 // Functions that cannot be mocked because they have more than 10 args. |
41 void CompressedTexSubImage3D( | 41 void CompressedTexSubImage3D( |
42 GLenum /*target*/, GLint /*level*/, GLint /*xoffset*/, GLint /*yoffset*/, | 42 GLenum /*target*/, GLint /*level*/, GLint /*xoffset*/, GLint /*yoffset*/, |
43 GLint /*zoffset*/, GLsizei /*width*/, GLsizei /*height*/, | 43 GLint /*zoffset*/, GLsizei /*width*/, GLsizei /*height*/, |
44 GLsizei /*depth*/, GLenum /*format*/, GLsizei /*imageSize*/, | 44 GLsizei /*depth*/, GLenum /*format*/, GLsizei /*imageSize*/, |
45 const void* /*data*/) { | 45 const void* /*data*/) { |
46 NOTREACHED(); | 46 NOTREACHED(); |
47 } | 47 } |
48 | 48 |
| 49 void CompressedTexSubImage3DRobustANGLE(GLenum /*target*/, |
| 50 GLint /*level*/, |
| 51 GLint /*xoffset*/, |
| 52 GLint /*yoffset*/, |
| 53 GLint /*zoffset*/, |
| 54 GLsizei /*width*/, |
| 55 GLsizei /*height*/, |
| 56 GLsizei /*depth*/, |
| 57 GLenum /*format*/, |
| 58 GLsizei /*imageSize*/, |
| 59 GLsizei /*dataSize*/, |
| 60 const void* /*data*/) { |
| 61 NOTREACHED(); |
| 62 } |
| 63 |
49 void CopySubTextureCHROMIUM(GLuint /*sourceId*/, | 64 void CopySubTextureCHROMIUM(GLuint /*sourceId*/, |
50 GLint /*sourceLevel*/, | 65 GLint /*sourceLevel*/, |
51 GLenum /*destTarget*/, | 66 GLenum /*destTarget*/, |
52 GLuint /*destId*/, | 67 GLuint /*destId*/, |
53 GLint /*destLevel*/, | 68 GLint /*destLevel*/, |
54 GLint /*xoffset*/, | 69 GLint /*xoffset*/, |
55 GLint /*yoffset*/, | 70 GLint /*yoffset*/, |
56 GLint /*x*/, | 71 GLint /*x*/, |
57 GLint /*y*/, | 72 GLint /*y*/, |
58 GLsizei /*width*/, | 73 GLsizei /*width*/, |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 #include "gl_bindings_autogen_mock.h" | 166 #include "gl_bindings_autogen_mock.h" |
152 | 167 |
153 static void GL_BINDING_CALL Mock_glTexSubImage3DNoData( | 168 static void GL_BINDING_CALL Mock_glTexSubImage3DNoData( |
154 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, | 169 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, |
155 GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type); | 170 GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type); |
156 }; | 171 }; |
157 | 172 |
158 } // namespace gl | 173 } // namespace gl |
159 | 174 |
160 #endif // UI_GL_GL_MOCK_H_ | 175 #endif // UI_GL_GL_MOCK_H_ |
OLD | NEW |