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

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

Issue 6313013: Exposed GL_NV_fence bindings to GPU process.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 11 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 | « app/gfx/gl/gl_interface.h ('k') | no next file » | 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 MOCK_METHOD6(VertexAttribPointer, void( 401 MOCK_METHOD6(VertexAttribPointer, void(
402 GLuint indx, GLint size, GLenum type, GLboolean normalized, 402 GLuint indx, GLint size, GLenum type, GLboolean normalized,
403 GLsizei stride, const void* ptr)); 403 GLsizei stride, const void* ptr));
404 404
405 MOCK_METHOD4(Viewport, void(GLint x, GLint y, GLsizei width, GLsizei height)); 405 MOCK_METHOD4(Viewport, void(GLint x, GLint y, GLsizei width, GLsizei height));
406 406
407 MOCK_METHOD0(SwapBuffers, void()); 407 MOCK_METHOD0(SwapBuffers, void());
408 408
409 MOCK_METHOD4(GetMaxValueInBufferCHROMIUM, GLuint( 409 MOCK_METHOD4(GetMaxValueInBufferCHROMIUM, GLuint(
410 GLuint buffer_id, GLsizei count, GLenum type, GLuint offset)); 410 GLuint buffer_id, GLsizei count, GLenum type, GLuint offset));
411
412 MOCK_METHOD2(GenFencesNV, void(GLsizei n, GLuint *fences));
413
414 MOCK_METHOD2(DeleteFencesNV, void(GLsizei n, const GLuint *fences));
415
416 MOCK_METHOD2(SetFenceNV, void(GLuint fence, GLenum condition));
417
418 MOCK_METHOD1(TestFenceNV, GLboolean(GLuint fence));
419
420 MOCK_METHOD1(FinishFenceNV, void(GLuint fence));
421
422 MOCK_METHOD1(IsFenceNV, GLboolean(GLuint fence));
423
424 MOCK_METHOD3(GetFenceivNV, void(GLuint fence, GLenum pname, GLint *params));
411 }; 425 };
412 426
413 } // namespace gfx 427 } // namespace gfx
414 428
415 #endif // GPU_COMMAND_BUFFER_COMMON_GL_MOCK_H_ 429 #endif // GPU_COMMAND_BUFFER_COMMON_GL_MOCK_H_
416 430
OLDNEW
« no previous file with comments | « app/gfx/gl/gl_interface.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698