OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |