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 29 matching lines...) Expand all Loading... |
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 CopySubTextureCHROMIUM(GLuint /*sourceId*/, | 49 void CopySubTextureCHROMIUM(GLuint /*sourceId*/, |
| 50 GLint /*sourceLevel*/, |
| 51 GLenum /*destTarget*/, |
50 GLuint /*destId*/, | 52 GLuint /*destId*/, |
| 53 GLint /*destLevel*/, |
51 GLint /*xoffset*/, | 54 GLint /*xoffset*/, |
52 GLint /*yoffset*/, | 55 GLint /*yoffset*/, |
53 GLint /*x*/, | 56 GLint /*x*/, |
54 GLint /*y*/, | 57 GLint /*y*/, |
55 GLsizei /*width*/, | 58 GLsizei /*width*/, |
56 GLsizei /*height*/, | 59 GLsizei /*height*/, |
57 GLboolean /*unpackFlipY*/, | 60 GLboolean /*unpackFlipY*/, |
58 GLboolean /*unpackPremultiplyAlpha*/, | 61 GLboolean /*unpackPremultiplyAlpha*/, |
59 GLboolean /*unpackUnmultiplyAlpha*/) { | 62 GLboolean /*unpackUnmultiplyAlpha*/) { |
60 NOTREACHED(); | 63 NOTREACHED(); |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 #include "gl_bindings_autogen_mock.h" | 123 #include "gl_bindings_autogen_mock.h" |
121 | 124 |
122 static void GL_BINDING_CALL Mock_glTexSubImage3DNoData( | 125 static void GL_BINDING_CALL Mock_glTexSubImage3DNoData( |
123 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, | 126 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, |
124 GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type); | 127 GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type); |
125 }; | 128 }; |
126 | 129 |
127 } // namespace gl | 130 } // namespace gl |
128 | 131 |
129 #endif // UI_GL_GL_MOCK_H_ | 132 #endif // UI_GL_GL_MOCK_H_ |
OLD | NEW |