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