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

Side by Side Diff: src/gpu/gl/iOS/GrGLCreateNativeInterface_iOS.cpp

Issue 14461006: Plumbed in discard_framebuffer extension (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Removed desktop side changes & validation test Created 7 years, 7 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 | « src/gpu/gl/debug/GrGLCreateDebugInterface.cpp ('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 1
2 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #include "gl/GrGLInterface.h" 10 #include "gl/GrGLInterface.h"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 interface->fStencilOp = glStencilOp; 78 interface->fStencilOp = glStencilOp;
79 interface->fStencilOpSeparate = glStencilOpSeparate; 79 interface->fStencilOpSeparate = glStencilOpSeparate;
80 // mac uses GLenum for internalFormat param (non-standard) 80 // mac uses GLenum for internalFormat param (non-standard)
81 // amounts to int vs. uint. 81 // amounts to int vs. uint.
82 interface->fTexImage2D = (GrGLTexImage2DProc)glTexImage2D; 82 interface->fTexImage2D = (GrGLTexImage2DProc)glTexImage2D;
83 #if GL_ARB_texture_storage 83 #if GL_ARB_texture_storage
84 interface->fTexStorage2D = glTexStorage2D; 84 interface->fTexStorage2D = glTexStorage2D;
85 #elif GL_EXT_texture_storage 85 #elif GL_EXT_texture_storage
86 interface->fTexStorage2D = glTexStorage2DEXT; 86 interface->fTexStorage2D = glTexStorage2DEXT;
87 #endif 87 #endif
88 #if GL_EXT_discard_framebuffer
89 interface->fDiscardFramebuffer = glDiscardFramebufferEXT;
90 #endif
88 interface->fTexParameteri = glTexParameteri; 91 interface->fTexParameteri = glTexParameteri;
89 interface->fTexParameteriv = glTexParameteriv; 92 interface->fTexParameteriv = glTexParameteriv;
90 interface->fTexSubImage2D = glTexSubImage2D; 93 interface->fTexSubImage2D = glTexSubImage2D;
91 interface->fUniform1f = glUniform1f; 94 interface->fUniform1f = glUniform1f;
92 interface->fUniform1i = glUniform1i; 95 interface->fUniform1i = glUniform1i;
93 interface->fUniform1fv = glUniform1fv; 96 interface->fUniform1fv = glUniform1fv;
94 interface->fUniform1iv = glUniform1iv; 97 interface->fUniform1iv = glUniform1iv;
95 interface->fUniform2f = glUniform2f; 98 interface->fUniform2f = glUniform2f;
96 interface->fUniform2i = glUniform2i; 99 interface->fUniform2i = glUniform2i;
97 interface->fUniform2fv = glUniform2fv; 100 interface->fUniform2fv = glUniform2fv;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 interface->fBindVertexArray = glBindVertexArrayOES; 142 interface->fBindVertexArray = glBindVertexArrayOES;
140 interface->fDeleteVertexArrays = glDeleteVertexArraysOES; 143 interface->fDeleteVertexArrays = glDeleteVertexArraysOES;
141 interface->fGenVertexArrays = glGenVertexArraysOES; 144 interface->fGenVertexArrays = glGenVertexArraysOES;
142 #endif 145 #endif
143 146
144 interface->fBindingsExported = kES2_GrGLBinding; 147 interface->fBindingsExported = kES2_GrGLBinding;
145 } 148 }
146 glInterface.get()->ref(); 149 glInterface.get()->ref();
147 return glInterface.get(); 150 return glInterface.get();
148 } 151 }
OLDNEW
« no previous file with comments | « src/gpu/gl/debug/GrGLCreateDebugInterface.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698