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

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

Issue 8381001: Split GL binding init into core and extension part (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Added dependencies to gl.gyp. Used NOT_REACHED() instead of DCHECK(0). Created 9 years, 1 month 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
« no previous file with comments | « gpu/GLES2/gl2ext.h ('k') | gpu/command_buffer/common/gles2_cmd_format.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 15 matching lines...) Expand all
26 MOCK_METHOD2(BeginQuery, void(GLenum target, GLuint id)); 26 MOCK_METHOD2(BeginQuery, void(GLenum target, GLuint id));
27 27
28 MOCK_METHOD3(BindAttribLocation, void( 28 MOCK_METHOD3(BindAttribLocation, void(
29 GLuint program, GLuint index, const char* name)); 29 GLuint program, GLuint index, const char* name));
30 30
31 MOCK_METHOD2(BindBuffer, void(GLenum target, GLuint buffer)); 31 MOCK_METHOD2(BindBuffer, void(GLenum target, GLuint buffer));
32 32
33 MOCK_METHOD3(BindFragDataLocation, void(GLuint program, GLuint colorNumber, 33 MOCK_METHOD3(BindFragDataLocation, void(GLuint program, GLuint colorNumber,
34 const char* name)); 34 const char* name));
35 35
36 MOCK_METHOD4(BindFragDataLocationIndexedARB, void(GLuint program, 36 MOCK_METHOD4(BindFragDataLocationIndexed, void(GLuint program,
37 GLuint colorNumber, GLuint index, const char* name)); 37 GLuint colorNumber, GLuint index, const char* name));
38 38
39 MOCK_METHOD2(BindFramebufferEXT, void(GLenum target, GLuint framebuffer)); 39 MOCK_METHOD2(BindFramebufferEXT, void(GLenum target, GLuint framebuffer));
40 40
41 MOCK_METHOD2(BindRenderbufferEXT, void(GLenum target, GLuint renderbuffer)); 41 MOCK_METHOD2(BindRenderbufferEXT, void(GLenum target, GLuint renderbuffer));
42 42
43 MOCK_METHOD2(BindTexture, void(GLenum target, GLuint texture)); 43 MOCK_METHOD2(BindTexture, void(GLenum target, GLuint texture));
44 44
45 MOCK_METHOD4(BlendColor, void( 45 MOCK_METHOD4(BlendColor, void(
46 GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)); 46 GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha));
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 MOCK_METHOD3(GetFenceivNV, void(GLuint fence, GLenum pname, GLint *params)); 469 MOCK_METHOD3(GetFenceivNV, void(GLuint fence, GLenum pname, GLint *params));
470 470
471 MOCK_METHOD1(SetSurfaceCHROMIUM, void(GLuint)); 471 MOCK_METHOD1(SetSurfaceCHROMIUM, void(GLuint));
472 472
473 MOCK_METHOD0(GetGraphicsResetStatusARB, GLenum()); 473 MOCK_METHOD0(GetGraphicsResetStatusARB, GLenum());
474 }; 474 };
475 475
476 } // namespace gfx 476 } // namespace gfx
477 477
478 #endif // GPU_COMMAND_BUFFER_COMMON_GL_MOCK_H_ 478 #endif // GPU_COMMAND_BUFFER_COMMON_GL_MOCK_H_
479
OLDNEW
« no previous file with comments | « gpu/GLES2/gl2ext.h ('k') | gpu/command_buffer/common/gles2_cmd_format.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698