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

Side by Side Diff: src/gpu/gl/mac/GrGLCreateNativeInterface_mac.cpp

Issue 14461006: Plumbed in discard_framebuffer extension (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Fixed other issues 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
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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 GET_PROC(StencilOpSeparate); 142 GET_PROC(StencilOpSeparate);
143 GET_PROC(TexImage2D); 143 GET_PROC(TexImage2D);
144 GET_PROC(TexParameteri); 144 GET_PROC(TexParameteri);
145 GET_PROC(TexParameteriv); 145 GET_PROC(TexParameteriv);
146 if (ver >= GR_GL_VER(4,2) || extensions.has("GL_ARB_texture_storage")) { 146 if (ver >= GR_GL_VER(4,2) || extensions.has("GL_ARB_texture_storage")) {
147 GET_PROC(TexStorage2D); 147 GET_PROC(TexStorage2D);
148 } else if (extensions.has("GL_EXT_texture_storage")) { 148 } else if (extensions.has("GL_EXT_texture_storage")) {
149 GET_PROC_SUFFIX(TexStorage2D, EXT); 149 GET_PROC_SUFFIX(TexStorage2D, EXT);
150 } 150 }
151 GET_PROC(TexSubImage2D); 151 GET_PROC(TexSubImage2D);
152 if (extensions.has("GL_EXT_discard_framebuffer")) {
bsalomon 2013/04/29 14:42:15 Does this extension exist on desktop? If not we ca
robertphillips 2013/04/29 15:25:39 As far as I can tell (from looking at the spec and
153 GET_PROC_SUFFIX(DiscardFramebuffer, EXT);
154 }
152 GET_PROC(Uniform1f); 155 GET_PROC(Uniform1f);
153 GET_PROC(Uniform1i); 156 GET_PROC(Uniform1i);
154 GET_PROC(Uniform1fv); 157 GET_PROC(Uniform1fv);
155 GET_PROC(Uniform1iv); 158 GET_PROC(Uniform1iv);
156 GET_PROC(Uniform2f); 159 GET_PROC(Uniform2f);
157 GET_PROC(Uniform2i); 160 GET_PROC(Uniform2i);
158 GET_PROC(Uniform2fv); 161 GET_PROC(Uniform2fv);
159 GET_PROC(Uniform2iv); 162 GET_PROC(Uniform2iv);
160 GET_PROC(Uniform3f); 163 GET_PROC(Uniform3f);
161 GET_PROC(Uniform3i); 164 GET_PROC(Uniform3i);
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 } 234 }
232 } 235 }
233 if (ver >= GR_GL_VER(3,3) || extensions.has("GL_ARB_blend_func_extended" )) { 236 if (ver >= GR_GL_VER(3,3) || extensions.has("GL_ARB_blend_func_extended" )) {
234 // ARB extension doesn't use the ARB suffix on the function name 237 // ARB extension doesn't use the ARB suffix on the function name
235 GET_PROC(BindFragDataLocationIndexed); 238 GET_PROC(BindFragDataLocationIndexed);
236 } 239 }
237 } 240 }
238 glInterface.get()->ref(); 241 glInterface.get()->ref();
239 return glInterface.get(); 242 return glInterface.get();
240 } 243 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698