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

Side by Side Diff: src/gpu/gl/unix/GrGLCreateNativeInterface_unix.cpp

Issue 212753002: Use fixed function pipeline only when drawing paths (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 6 years, 8 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
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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 functions->fReadPixels = glReadPixels; 124 functions->fReadPixels = glReadPixels;
125 functions->fScissor = glScissor; 125 functions->fScissor = glScissor;
126 GR_GL_GET_PROC(ShaderSource); 126 GR_GL_GET_PROC(ShaderSource);
127 functions->fStencilFunc = glStencilFunc; 127 functions->fStencilFunc = glStencilFunc;
128 GR_GL_GET_PROC(StencilFuncSeparate); 128 GR_GL_GET_PROC(StencilFuncSeparate);
129 functions->fStencilMask = glStencilMask; 129 functions->fStencilMask = glStencilMask;
130 GR_GL_GET_PROC(StencilMaskSeparate); 130 GR_GL_GET_PROC(StencilMaskSeparate);
131 functions->fStencilOp = glStencilOp; 131 functions->fStencilOp = glStencilOp;
132 GR_GL_GET_PROC(StencilOpSeparate); 132 GR_GL_GET_PROC(StencilOpSeparate);
133 functions->fTexImage2D = glTexImage2D; 133 functions->fTexImage2D = glTexImage2D;
134 functions->fTexGenfv = glTexGenfv;
135 functions->fTexGeni = glTexGeni;
136 functions->fTexParameteri = glTexParameteri; 134 functions->fTexParameteri = glTexParameteri;
137 functions->fTexParameteriv = glTexParameteriv; 135 functions->fTexParameteriv = glTexParameteriv;
138 if (glVer >= GR_GL_VER(4,2) || extensions.has("GL_ARB_texture_storage")) { 136 if (glVer >= GR_GL_VER(4,2) || extensions.has("GL_ARB_texture_storage")) {
139 GR_GL_GET_PROC(TexStorage2D); 137 GR_GL_GET_PROC(TexStorage2D);
140 } else if (extensions.has("GL_EXT_texture_storage")) { 138 } else if (extensions.has("GL_EXT_texture_storage")) {
141 GR_GL_GET_PROC_SUFFIX(TexStorage2D, EXT); 139 GR_GL_GET_PROC_SUFFIX(TexStorage2D, EXT);
142 } 140 }
143 functions->fTexSubImage2D = glTexSubImage2D; 141 functions->fTexSubImage2D = glTexSubImage2D;
144 GR_GL_GET_PROC(Uniform1f); 142 GR_GL_GET_PROC(Uniform1f);
145 GR_GL_GET_PROC(Uniform1i); 143 GR_GL_GET_PROC(Uniform1i);
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 GR_GL_GET_PROC(InvalidateSubFramebuffer); 283 GR_GL_GET_PROC(InvalidateSubFramebuffer);
286 GR_GL_GET_PROC(InvalidateTexImage); 284 GR_GL_GET_PROC(InvalidateTexImage);
287 GR_GL_GET_PROC(InvalidateTexSubImage); 285 GR_GL_GET_PROC(InvalidateTexSubImage);
288 } 286 }
289 287
290 interface->fStandard = kGL_GrGLStandard; 288 interface->fStandard = kGL_GrGLStandard;
291 interface->fExtensions.swap(&extensions); 289 interface->fExtensions.swap(&extensions);
292 290
293 return interface; 291 return interface;
294 } 292 }
OLDNEW
« no previous file with comments | « src/gpu/gl/mesa/GrGLCreateMesaInterface.cpp ('k') | src/gpu/gl/win/GrGLCreateNativeInterface_win.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698