OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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. It has to mock | 5 // This file implements mock GL Interface for unit testing. It has to mock |
6 // Desktop GL, not GLES2 as it is used to test the service side code. | 6 // Desktop GL, not GLES2 as it is used to test the service side code. |
7 | 7 |
8 #ifndef GPU_COMMAND_BUFFER_COMMON_GL_MOCK_H_ | 8 #ifndef GPU_COMMAND_BUFFER_COMMON_GL_MOCK_H_ |
9 #define GPU_COMMAND_BUFFER_COMMON_GL_MOCK_H_ | 9 #define GPU_COMMAND_BUFFER_COMMON_GL_MOCK_H_ |
10 #pragma once | 10 #pragma once |
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 MOCK_METHOD3(TexParameterf, void(GLenum target, GLenum pname, GLfloat param)); | 357 MOCK_METHOD3(TexParameterf, void(GLenum target, GLenum pname, GLfloat param)); |
358 | 358 |
359 MOCK_METHOD3(TexParameterfv, void( | 359 MOCK_METHOD3(TexParameterfv, void( |
360 GLenum target, GLenum pname, const GLfloat* params)); | 360 GLenum target, GLenum pname, const GLfloat* params)); |
361 | 361 |
362 MOCK_METHOD3(TexParameteri, void(GLenum target, GLenum pname, GLint param)); | 362 MOCK_METHOD3(TexParameteri, void(GLenum target, GLenum pname, GLint param)); |
363 | 363 |
364 MOCK_METHOD3(TexParameteriv, void( | 364 MOCK_METHOD3(TexParameteriv, void( |
365 GLenum target, GLenum pname, const GLint* params)); | 365 GLenum target, GLenum pname, const GLint* params)); |
366 | 366 |
| 367 MOCK_METHOD5(TexStorage2DEXT, void( |
| 368 GLenum target, GLsizei levels, GLenum internalformat, |
| 369 GLsizei width, GLsizei height)); |
| 370 |
367 MOCK_METHOD9(TexSubImage2D, void( | 371 MOCK_METHOD9(TexSubImage2D, void( |
368 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, | 372 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, |
369 GLsizei height, GLenum format, GLenum type, const void* pixels)); | 373 GLsizei height, GLenum format, GLenum type, const void* pixels)); |
370 | 374 |
371 MOCK_METHOD2(Uniform1f, void(GLint location, GLfloat x)); | 375 MOCK_METHOD2(Uniform1f, void(GLint location, GLfloat x)); |
372 | 376 |
373 MOCK_METHOD3(Uniform1fv, | 377 MOCK_METHOD3(Uniform1fv, |
374 void(GLint location, GLsizei count, const GLfloat* v)); | 378 void(GLint location, GLsizei count, const GLfloat* v)); |
375 | 379 |
376 MOCK_METHOD2(Uniform1i, void(GLint location, GLint x)); | 380 MOCK_METHOD2(Uniform1i, void(GLint location, GLint x)); |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
469 MOCK_METHOD3(GetFenceivNV, void(GLuint fence, GLenum pname, GLint *params)); | 473 MOCK_METHOD3(GetFenceivNV, void(GLuint fence, GLenum pname, GLint *params)); |
470 | 474 |
471 MOCK_METHOD1(SetSurfaceCHROMIUM, void(GLuint)); | 475 MOCK_METHOD1(SetSurfaceCHROMIUM, void(GLuint)); |
472 | 476 |
473 MOCK_METHOD0(GetGraphicsResetStatusARB, GLenum()); | 477 MOCK_METHOD0(GetGraphicsResetStatusARB, GLenum()); |
474 }; | 478 }; |
475 | 479 |
476 } // namespace gfx | 480 } // namespace gfx |
477 | 481 |
478 #endif // GPU_COMMAND_BUFFER_COMMON_GL_MOCK_H_ | 482 #endif // GPU_COMMAND_BUFFER_COMMON_GL_MOCK_H_ |
OLD | NEW |