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

Side by Side Diff: src/gpu/gl/win/GrGLCreateNativeInterface_win.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/GrGLExtensions.h" 10 #include "gl/GrGLExtensions.h"
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 SET_PROC(StencilOp) 122 SET_PROC(StencilOp)
123 SET_PROC(TexImage2D) 123 SET_PROC(TexImage2D)
124 SET_PROC(TexParameteri) 124 SET_PROC(TexParameteri)
125 SET_PROC(TexParameteriv) 125 SET_PROC(TexParameteriv)
126 if (glVer >= GR_GL_VER(4,2) || extensions.has("GL_ARB_texture_storage")) { 126 if (glVer >= GR_GL_VER(4,2) || extensions.has("GL_ARB_texture_storage")) {
127 WGL_SET_PROC(TexStorage2D); 127 WGL_SET_PROC(TexStorage2D);
128 } else if (extensions.has("GL_EXT_texture_storage")) { 128 } else if (extensions.has("GL_EXT_texture_storage")) {
129 WGL_SET_PROC_SUFFIX(TexStorage2D, EXT); 129 WGL_SET_PROC_SUFFIX(TexStorage2D, EXT);
130 } 130 }
131 SET_PROC(TexSubImage2D) 131 SET_PROC(TexSubImage2D)
132 if (extensions.has("GL_EXT_discard_framebuffer")) {
133 WGL_SET_PROC_SUFFIX(DiscardFramebuffer, EXT);
134 }
132 SET_PROC(Viewport) 135 SET_PROC(Viewport)
133 136
134 WGL_SET_PROC(ActiveTexture); 137 WGL_SET_PROC(ActiveTexture);
135 WGL_SET_PROC(AttachShader); 138 WGL_SET_PROC(AttachShader);
136 WGL_SET_PROC(BeginQuery); 139 WGL_SET_PROC(BeginQuery);
137 WGL_SET_PROC(BindAttribLocation); 140 WGL_SET_PROC(BindAttribLocation);
138 WGL_SET_PROC(BindBuffer); 141 WGL_SET_PROC(BindBuffer);
139 WGL_SET_PROC(BindFragDataLocation); 142 WGL_SET_PROC(BindFragDataLocation);
140 WGL_SET_PROC(BufferData); 143 WGL_SET_PROC(BufferData);
141 WGL_SET_PROC(BufferSubData); 144 WGL_SET_PROC(BufferSubData);
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 WGL_SET_PROC_SUFFIX(PointAlongPath, NV); 309 WGL_SET_PROC_SUFFIX(PointAlongPath, NV);
307 } 310 }
308 311
309 interface->fBindingsExported = kDesktop_GrGLBinding; 312 interface->fBindingsExported = kDesktop_GrGLBinding;
310 313
311 return interface; 314 return interface;
312 } else { 315 } else {
313 return NULL; 316 return NULL;
314 } 317 }
315 } 318 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698