OLD | NEW |
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 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 UI_GFX_GL_GL_INTERFACE_H_ | 9 #ifndef UI_GFX_GL_GL_INTERFACE_H_ |
10 #define UI_GFX_GL_GL_INTERFACE_H_ | 10 #define UI_GFX_GL_GL_INTERFACE_H_ |
(...skipping 18 matching lines...) Expand all Loading... |
29 GLuint shader) = 0; | 29 GLuint shader) = 0; |
30 | 30 |
31 virtual void BeginQuery(GLenum target, GLuint id) = 0; | 31 virtual void BeginQuery(GLenum target, GLuint id) = 0; |
32 | 32 |
33 virtual void BindAttribLocation(GLuint program, | 33 virtual void BindAttribLocation(GLuint program, |
34 GLuint index, | 34 GLuint index, |
35 const char* name) = 0; | 35 const char* name) = 0; |
36 | 36 |
37 virtual void BindBuffer(GLenum target, GLuint buffer) = 0; | 37 virtual void BindBuffer(GLenum target, GLuint buffer) = 0; |
38 | 38 |
39 virtual void BindFragDataLocationIndexedARB(GLuint program, | 39 virtual void BindFragDataLocationIndexed(GLuint program, |
40 GLuint colorNumber, | 40 GLuint colorNumber, |
41 GLuint index, | 41 GLuint index, |
42 const char* name) = 0; | 42 const char* name) = 0; |
43 | 43 |
44 virtual void BindFragDataLocation(GLuint program, | 44 virtual void BindFragDataLocation(GLuint program, |
45 GLuint colorNumber, | 45 GLuint colorNumber, |
46 const char* name) = 0; | 46 const char* name) = 0; |
47 | 47 |
48 virtual void BindFramebufferEXT(GLenum target, GLuint framebuffer) = 0; | 48 virtual void BindFramebufferEXT(GLenum target, GLuint framebuffer) = 0; |
49 | 49 |
50 virtual void BindRenderbufferEXT(GLenum target, GLuint renderbuffer) = 0; | 50 virtual void BindRenderbufferEXT(GLenum target, GLuint renderbuffer) = 0; |
51 | 51 |
52 virtual void BindTexture(GLenum target, GLuint texture) = 0; | 52 virtual void BindTexture(GLenum target, GLuint texture) = 0; |
(...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
584 | 584 |
585 virtual GLenum GetGraphicsResetStatusARB() = 0; | 585 virtual GLenum GetGraphicsResetStatusARB() = 0; |
586 | 586 |
587 private: | 587 private: |
588 static GLInterface* interface_; | 588 static GLInterface* interface_; |
589 }; | 589 }; |
590 | 590 |
591 } // namespace gfx | 591 } // namespace gfx |
592 | 592 |
593 #endif // UI_GFX_GL_GL_INTERFACE_H_ | 593 #endif // UI_GFX_GL_GL_INTERFACE_H_ |
OLD | NEW |