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

Side by Side Diff: app/gfx/gl/gl_interface.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/generate_bindings.py ('k') | gpu/command_buffer/common/gl_mock.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) 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 glue to a GL interface so we can mock it for unit 5 // This file implements glue to a GL interface so we can mock it for unit
6 // testing. It has to be Desktop GL, not GLES2 as it is used to test the service 6 // testing. It has to be Desktop GL, not GLES2 as it is used to test the service
7 // side code. 7 // side code.
8 8
9 #ifndef APP_GFX_GL_GL_INTERFACE_H_ 9 #ifndef APP_GFX_GL_GL_INTERFACE_H_
10 #define APP_GFX_GL_GL_INTERFACE_H_ 10 #define APP_GFX_GL_GL_INTERFACE_H_
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 GLuint indx, GLint size, GLenum type, GLboolean normalized, 402 GLuint indx, GLint size, GLenum type, GLboolean normalized,
403 GLsizei stride, const void* ptr) = 0; 403 GLsizei stride, const void* ptr) = 0;
404 404
405 virtual void Viewport(GLint x, GLint y, GLsizei width, GLsizei height) = 0; 405 virtual void Viewport(GLint x, GLint y, GLsizei width, GLsizei height) = 0;
406 406
407 virtual void SwapBuffers() = 0; 407 virtual void SwapBuffers() = 0;
408 408
409 virtual GLuint GetMaxValueInBufferCHROMIUM( 409 virtual GLuint GetMaxValueInBufferCHROMIUM(
410 GLuint buffer_id, GLsizei count, GLenum type, GLuint offset) = 0; 410 GLuint buffer_id, GLsizei count, GLenum type, GLuint offset) = 0;
411 411
412 virtual void GenFencesNV(GLsizei n, GLuint *fences) = 0;
413
414 virtual void DeleteFencesNV(GLsizei n, const GLuint *fences) = 0;
415
416 virtual void SetFenceNV(GLuint fence, GLenum condition) = 0;
417
418 virtual GLboolean TestFenceNV(GLuint fence) = 0;
419
420 virtual void FinishFenceNV(GLuint fence) = 0;
421
422 virtual GLboolean IsFenceNV(GLuint fence) = 0;
423
424 virtual void GetFenceivNV(GLuint fence, GLenum pname, GLint *params) = 0;
425
412 private: 426 private:
413 static GLInterface* interface_; 427 static GLInterface* interface_;
414 }; 428 };
415 429
416 } // namespace gfx 430 } // namespace gfx
417 431
418 #endif // APP_GFX_GL_GL_INTERFACE_H_ 432 #endif // APP_GFX_GL_GL_INTERFACE_H_
OLDNEW
« no previous file with comments | « app/gfx/gl/generate_bindings.py ('k') | gpu/command_buffer/common/gl_mock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698