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

Side by Side Diff: src/gpu/gl/win/GrGLCreateNativeInterface_win.cpp

Issue 130423013: Use vertex buffer objects instead of client side arrays in fixed-function codepaths (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 6 years, 10 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
« no previous file with comments | « src/gpu/gl/unix/GrGLCreateNativeInterface_unix.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 #include "gl/GrGLInterface.h" 9 #include "gl/GrGLInterface.h"
10 #include "gl/GrGLUtil.h" 10 #include "gl/GrGLUtil.h"
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 83
84 SET_PROC(Clear) 84 SET_PROC(Clear)
85 SET_PROC(ClearColor) 85 SET_PROC(ClearColor)
86 SET_PROC(ClearStencil) 86 SET_PROC(ClearStencil)
87 SET_PROC(ColorMask) 87 SET_PROC(ColorMask)
88 SET_PROC(CopyTexSubImage2D) 88 SET_PROC(CopyTexSubImage2D)
89 SET_PROC(CullFace) 89 SET_PROC(CullFace)
90 SET_PROC(DeleteTextures) 90 SET_PROC(DeleteTextures)
91 SET_PROC(DepthMask) 91 SET_PROC(DepthMask)
92 SET_PROC(Disable) 92 SET_PROC(Disable)
93 SET_PROC(DisableClientState)
94 SET_PROC(DrawArrays) 93 SET_PROC(DrawArrays)
95 SET_PROC(DrawElements) 94 SET_PROC(DrawElements)
96 SET_PROC(DrawBuffer) 95 SET_PROC(DrawBuffer)
97 SET_PROC(Enable) 96 SET_PROC(Enable)
98 SET_PROC(EnableClientState)
99 SET_PROC(FrontFace) 97 SET_PROC(FrontFace)
100 SET_PROC(Finish) 98 SET_PROC(Finish)
101 SET_PROC(Flush) 99 SET_PROC(Flush)
102 SET_PROC(GenTextures) 100 SET_PROC(GenTextures)
103 SET_PROC(GetError) 101 SET_PROC(GetError)
104 SET_PROC(GetIntegerv) 102 SET_PROC(GetIntegerv)
105 SET_PROC(GetString) 103 SET_PROC(GetString)
106 SET_PROC(GetTexLevelParameteriv) 104 SET_PROC(GetTexLevelParameteriv)
107 SET_PROC(LineWidth) 105 SET_PROC(LineWidth)
108 SET_PROC(LoadIdentity) 106 SET_PROC(LoadIdentity)
109 SET_PROC(LoadMatrixf) 107 SET_PROC(LoadMatrixf)
110 SET_PROC(MatrixMode) 108 SET_PROC(MatrixMode)
111 SET_PROC(PixelStorei) 109 SET_PROC(PixelStorei)
112 SET_PROC(ReadBuffer) 110 SET_PROC(ReadBuffer)
113 SET_PROC(ReadPixels) 111 SET_PROC(ReadPixels)
114 SET_PROC(Scissor) 112 SET_PROC(Scissor)
115 SET_PROC(StencilFunc) 113 SET_PROC(StencilFunc)
116 SET_PROC(StencilMask) 114 SET_PROC(StencilMask)
117 SET_PROC(StencilOp) 115 SET_PROC(StencilOp)
118 SET_PROC(TexGenf)
119 SET_PROC(TexGenfv) 116 SET_PROC(TexGenfv)
120 SET_PROC(TexGeni) 117 SET_PROC(TexGeni)
121 SET_PROC(TexImage2D) 118 SET_PROC(TexImage2D)
122 SET_PROC(TexParameteri) 119 SET_PROC(TexParameteri)
123 SET_PROC(TexParameteriv) 120 SET_PROC(TexParameteriv)
124 if (glVer >= GR_GL_VER(4,2) || extensions.has("GL_ARB_texture_storage")) { 121 if (glVer >= GR_GL_VER(4,2) || extensions.has("GL_ARB_texture_storage")) {
125 WGL_SET_PROC(TexStorage2D); 122 WGL_SET_PROC(TexStorage2D);
126 } else if (extensions.has("GL_EXT_texture_storage")) { 123 } else if (extensions.has("GL_EXT_texture_storage")) {
127 WGL_SET_PROC_SUFFIX(TexStorage2D, EXT); 124 WGL_SET_PROC_SUFFIX(TexStorage2D, EXT);
128 } 125 }
129 SET_PROC(TexSubImage2D) 126 SET_PROC(TexSubImage2D)
130 SET_PROC(Viewport) 127 SET_PROC(Viewport)
131 SET_PROC(VertexPointer)
132 128
133 WGL_SET_PROC(ActiveTexture); 129 WGL_SET_PROC(ActiveTexture);
134 WGL_SET_PROC(AttachShader); 130 WGL_SET_PROC(AttachShader);
135 WGL_SET_PROC(BeginQuery); 131 WGL_SET_PROC(BeginQuery);
136 WGL_SET_PROC(BindAttribLocation); 132 WGL_SET_PROC(BindAttribLocation);
137 WGL_SET_PROC(BindBuffer); 133 WGL_SET_PROC(BindBuffer);
138 WGL_SET_PROC(BindFragDataLocation); 134 WGL_SET_PROC(BindFragDataLocation);
139 WGL_SET_PROC(BufferData); 135 WGL_SET_PROC(BufferData);
140 WGL_SET_PROC(BufferSubData); 136 WGL_SET_PROC(BufferSubData);
141 WGL_SET_PROC(ClientActiveTexture);
142 WGL_SET_PROC(CompileShader); 137 WGL_SET_PROC(CompileShader);
143 WGL_SET_PROC(CompressedTexImage2D); 138 WGL_SET_PROC(CompressedTexImage2D);
144 WGL_SET_PROC(CreateProgram); 139 WGL_SET_PROC(CreateProgram);
145 WGL_SET_PROC(CreateShader); 140 WGL_SET_PROC(CreateShader);
146 WGL_SET_PROC(DeleteBuffers); 141 WGL_SET_PROC(DeleteBuffers);
147 WGL_SET_PROC(DeleteQueries); 142 WGL_SET_PROC(DeleteQueries);
148 WGL_SET_PROC(DeleteProgram); 143 WGL_SET_PROC(DeleteProgram);
149 WGL_SET_PROC(DeleteShader); 144 WGL_SET_PROC(DeleteShader);
150 WGL_SET_PROC(DisableVertexAttribArray); 145 WGL_SET_PROC(DisableVertexAttribArray);
151 WGL_SET_PROC(DrawBuffers); 146 WGL_SET_PROC(DrawBuffers);
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 } 306 }
312 307
313 interface->fStandard = kGL_GrGLStandard; 308 interface->fStandard = kGL_GrGLStandard;
314 interface->fExtensions.swap(&extensions); 309 interface->fExtensions.swap(&extensions);
315 310
316 return interface; 311 return interface;
317 } else { 312 } else {
318 return NULL; 313 return NULL;
319 } 314 }
320 } 315 }
OLDNEW
« no previous file with comments | « src/gpu/gl/unix/GrGLCreateNativeInterface_unix.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698