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 #include "window_manager/gles/real_gles2_interface.h" | 5 #include "window_manager/gles/real_gles2_interface.h" |
6 | 6 |
7 #ifndef EGLAPI | 7 #ifndef EGLAPI |
8 #define EGLAPI | 8 #define EGLAPI |
9 #endif | 9 #endif |
10 | 10 |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 void RealGles2Interface::DeleteShader(GLuint shader) { | 242 void RealGles2Interface::DeleteShader(GLuint shader) { |
243 glDeleteShader(shader); | 243 glDeleteShader(shader); |
244 GLES2_DCHECK_ERROR(); | 244 GLES2_DCHECK_ERROR(); |
245 } | 245 } |
246 | 246 |
247 void RealGles2Interface::DeleteTextures(GLsizei n, const GLuint* textures) { | 247 void RealGles2Interface::DeleteTextures(GLsizei n, const GLuint* textures) { |
248 glDeleteTextures(n, textures); | 248 glDeleteTextures(n, textures); |
249 GLES2_DCHECK_ERROR(); | 249 GLES2_DCHECK_ERROR(); |
250 } | 250 } |
251 | 251 |
| 252 void RealGles2Interface::DepthMask(GLboolean flag) { |
| 253 glDepthMask(flag); |
| 254 GLES2_DCHECK_ERROR(); |
| 255 } |
| 256 |
252 void RealGles2Interface::Disable(GLenum cap) { | 257 void RealGles2Interface::Disable(GLenum cap) { |
253 glDisable(cap); | 258 glDisable(cap); |
254 GLES2_DCHECK_ERROR(); | 259 GLES2_DCHECK_ERROR(); |
255 } | 260 } |
256 | 261 |
257 void RealGles2Interface::DisableVertexAttribArray(GLuint index) { | 262 void RealGles2Interface::DisableVertexAttribArray(GLuint index) { |
258 glDisableVertexAttribArray(index); | 263 glDisableVertexAttribArray(index); |
259 GLES2_DCHECK_ERROR(); | 264 GLES2_DCHECK_ERROR(); |
260 } | 265 } |
261 | 266 |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
515 } | 520 } |
516 | 521 |
517 void RealGles2Interface::EGLImageTargetRenderbufferStorageOES( | 522 void RealGles2Interface::EGLImageTargetRenderbufferStorageOES( |
518 GLenum target, GLeglImageOES image) { | 523 GLenum target, GLeglImageOES image) { |
519 DCHECK(gl_egl_image_target_renderbuffer_storage_oes_); | 524 DCHECK(gl_egl_image_target_renderbuffer_storage_oes_); |
520 gl_egl_image_target_renderbuffer_storage_oes_(target, image); | 525 gl_egl_image_target_renderbuffer_storage_oes_(target, image); |
521 GLES2_DCHECK_ERROR(); | 526 GLES2_DCHECK_ERROR(); |
522 } | 527 } |
523 | 528 |
524 } // namespace window_manager | 529 } // namespace window_manager |
OLD | NEW |