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

Side by Side Diff: gles/real_gles2_interface.cc

Issue 3599002: wm: Add two pass rendering to OpenGL|ES backend. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/window_manager.git
Patch Set: final. Created 10 years, 2 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 | « gles/real_gles2_interface.h ('k') | no next file » | 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 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
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
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
OLDNEW
« no previous file with comments | « gles/real_gles2_interface.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698