OLD | NEW |
1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium OS 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 #ifndef WINDOW_MANAGER_GLES2_INTERFACE_H_ | 5 #ifndef WINDOW_MANAGER_GLES2_INTERFACE_H_ |
6 #define WINDOW_MANAGER_GLES2_INTERFACE_H_ | 6 #define WINDOW_MANAGER_GLES2_INTERFACE_H_ |
7 | 7 |
8 #include <EGL/egl.h> | 8 #include <EGL/egl.h> |
9 #include <EGL/eglext.h> | 9 #include <EGL/eglext.h> |
10 | 10 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 virtual void Clear(GLbitfield mask) = 0; | 66 virtual void Clear(GLbitfield mask) = 0; |
67 virtual void ClearColor(GLclampf red, GLclampf green, GLclampf blue, | 67 virtual void ClearColor(GLclampf red, GLclampf green, GLclampf blue, |
68 GLclampf alpha) = 0; | 68 GLclampf alpha) = 0; |
69 virtual void CompileShader(GLuint shader) = 0; | 69 virtual void CompileShader(GLuint shader) = 0; |
70 virtual GLuint CreateProgram() = 0; | 70 virtual GLuint CreateProgram() = 0; |
71 virtual GLuint CreateShader(GLenum type) = 0; | 71 virtual GLuint CreateShader(GLenum type) = 0; |
72 virtual void DeleteBuffers(GLsizei n, const GLuint* buffers) = 0; | 72 virtual void DeleteBuffers(GLsizei n, const GLuint* buffers) = 0; |
73 virtual void DeleteProgram(GLuint program) = 0; | 73 virtual void DeleteProgram(GLuint program) = 0; |
74 virtual void DeleteShader(GLuint shader) = 0; | 74 virtual void DeleteShader(GLuint shader) = 0; |
75 virtual void DeleteTextures(GLsizei n, const GLuint* textures) = 0; | 75 virtual void DeleteTextures(GLsizei n, const GLuint* textures) = 0; |
| 76 virtual void DepthMask(GLboolean flag) = 0; |
76 virtual void Disable(GLenum cap) = 0; | 77 virtual void Disable(GLenum cap) = 0; |
77 virtual void DisableVertexAttribArray(GLuint index) = 0; | 78 virtual void DisableVertexAttribArray(GLuint index) = 0; |
78 virtual void DrawArrays(GLenum mode, GLint first, GLsizei count) = 0; | 79 virtual void DrawArrays(GLenum mode, GLint first, GLsizei count) = 0; |
79 virtual void Enable(GLenum cap) = 0; | 80 virtual void Enable(GLenum cap) = 0; |
80 virtual void EnableVertexAttribArray(GLuint index) = 0; | 81 virtual void EnableVertexAttribArray(GLuint index) = 0; |
81 virtual void GenBuffers(GLsizei n, GLuint* buffers) = 0; | 82 virtual void GenBuffers(GLsizei n, GLuint* buffers) = 0; |
82 virtual void GenTextures(GLsizei n, GLuint* textures) = 0; | 83 virtual void GenTextures(GLsizei n, GLuint* textures) = 0; |
83 virtual int GetAttribLocation(GLuint program, const char* name) = 0; | 84 virtual int GetAttribLocation(GLuint program, const char* name) = 0; |
84 virtual GLenum GetError() = 0; | 85 virtual GLenum GetError() = 0; |
85 virtual void GetIntegerv(GLenum pname, GLint* params) = 0; | 86 virtual void GetIntegerv(GLenum pname, GLint* params) = 0; |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 virtual void EGLImageTargetRenderbufferStorageOES(GLenum target, | 145 virtual void EGLImageTargetRenderbufferStorageOES(GLenum target, |
145 GLeglImageOES image) = 0; | 146 GLeglImageOES image) = 0; |
146 | 147 |
147 private: | 148 private: |
148 DISALLOW_COPY_AND_ASSIGN(Gles2Interface); | 149 DISALLOW_COPY_AND_ASSIGN(Gles2Interface); |
149 }; | 150 }; |
150 | 151 |
151 } // namespace window_manager | 152 } // namespace window_manager |
152 | 153 |
153 #endif | 154 #endif |
OLD | NEW |