Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(201)

Side by Side Diff: gpu/command_buffer/common/gl_mock.h

Issue 8772033: Adds support for the GL_ANGLE_texture_usage and GL_EXT_texture_storage (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/gles2_implementation_autogen.h ('k') | gpu/command_buffer/common/gles2_cmd_format_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698