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

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

Issue 7564013: Roll skia to r2034 (and add new gl bindings) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 months 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 | « DEPS ('k') | ui/gfx/gl/generate_bindings.py » ('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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 MOCK_METHOD2(DepthRangef, void(GLclampf zNear, GLclampf zFar)); 128 MOCK_METHOD2(DepthRangef, void(GLclampf zNear, GLclampf zFar));
129 129
130 MOCK_METHOD2(DetachShader, void(GLuint program, GLuint shader)); 130 MOCK_METHOD2(DetachShader, void(GLuint program, GLuint shader));
131 131
132 MOCK_METHOD1(Disable, void(GLenum cap)); 132 MOCK_METHOD1(Disable, void(GLenum cap));
133 133
134 MOCK_METHOD1(DisableVertexAttribArray, void(GLuint index)); 134 MOCK_METHOD1(DisableVertexAttribArray, void(GLuint index));
135 135
136 MOCK_METHOD3(DrawArrays, void(GLenum mode, GLint first, GLsizei count)); 136 MOCK_METHOD3(DrawArrays, void(GLenum mode, GLint first, GLsizei count));
137 137
138 MOCK_METHOD1(DrawBuffer, void(GLenum mode));
139
140 MOCK_METHOD2(DrawBuffersARB, void(GLsizei n, const GLenum* bufs));
141
138 MOCK_METHOD4(DrawElements, void( 142 MOCK_METHOD4(DrawElements, void(
139 GLenum mode, GLsizei count, GLenum type, const void* indices)); 143 GLenum mode, GLsizei count, GLenum type, const void* indices));
140 144
141 MOCK_METHOD2(EGLImageTargetTexture2DOES, void( 145 MOCK_METHOD2(EGLImageTargetTexture2DOES, void(
142 GLenum target, GLeglImageOES image)); 146 GLenum target, GLeglImageOES image));
143 147
144 MOCK_METHOD1(Enable, void(GLenum cap)); 148 MOCK_METHOD1(Enable, void(GLenum cap));
145 149
146 MOCK_METHOD1(EnableVertexAttribArray, void(GLuint index)); 150 MOCK_METHOD1(EnableVertexAttribArray, void(GLuint index));
147 151
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 MOCK_METHOD1(LineWidth, void(GLfloat width)); 269 MOCK_METHOD1(LineWidth, void(GLfloat width));
266 270
267 MOCK_METHOD1(LinkProgram, void(GLuint program)); 271 MOCK_METHOD1(LinkProgram, void(GLuint program));
268 272
269 MOCK_METHOD2(MapBuffer, void*(GLenum target, GLenum access)); 273 MOCK_METHOD2(MapBuffer, void*(GLenum target, GLenum access));
270 274
271 MOCK_METHOD2(PixelStorei, void(GLenum pname, GLint param)); 275 MOCK_METHOD2(PixelStorei, void(GLenum pname, GLint param));
272 276
273 MOCK_METHOD2(PolygonOffset, void(GLfloat factor, GLfloat units)); 277 MOCK_METHOD2(PolygonOffset, void(GLfloat factor, GLfloat units));
274 278
279 MOCK_METHOD1(ReadBuffer, void(GLenum src));
280
275 MOCK_METHOD7(ReadPixels, void( 281 MOCK_METHOD7(ReadPixels, void(
276 GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, 282 GLint x, GLint y, GLsizei width, GLsizei height, GLenum format,
277 GLenum type, void* pixels)); 283 GLenum type, void* pixels));
278 284
279 MOCK_METHOD0(ReleaseShaderCompiler, void()); 285 MOCK_METHOD0(ReleaseShaderCompiler, void());
280 286
281 MOCK_METHOD4(RenderbufferStorageEXT, void( 287 MOCK_METHOD4(RenderbufferStorageEXT, void(
282 GLenum target, GLenum internalformat, GLsizei width, GLsizei height)); 288 GLenum target, GLenum internalformat, GLsizei width, GLsizei height));
283 289
284 MOCK_METHOD5(RenderbufferStorageMultisampleANGLE, void( 290 MOCK_METHOD5(RenderbufferStorageMultisampleANGLE, void(
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 441
436 MOCK_METHOD1(SetSurfaceCHROMIUM, void(GLuint)); 442 MOCK_METHOD1(SetSurfaceCHROMIUM, void(GLuint));
437 443
438 MOCK_METHOD0(GetGraphicsResetStatusARB, GLenum()); 444 MOCK_METHOD0(GetGraphicsResetStatusARB, GLenum());
439 }; 445 };
440 446
441 } // namespace gfx 447 } // namespace gfx
442 448
443 #endif // GPU_COMMAND_BUFFER_COMMON_GL_MOCK_H_ 449 #endif // GPU_COMMAND_BUFFER_COMMON_GL_MOCK_H_
444 450
OLDNEW
« no previous file with comments | « DEPS ('k') | ui/gfx/gl/generate_bindings.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698