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

Side by Side Diff: src/gpu/gl/GrGLCreateNullInterface.cpp

Issue 12328111: Use glGetStringi to get extensions when available. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « src/gpu/gl/GrGLContextInfo.cpp ('k') | src/gpu/gl/GrGLDefines.h » ('j') | 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 * Copyright 2011 Google Inc. 2 * Copyright 2011 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 8
9 #include "gl/GrGLInterface.h" 9 #include "gl/GrGLInterface.h"
10 #include "GrGLDefines.h" 10 #include "GrGLDefines.h"
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 interface->fGetQueryObjecti64v = noOpGLGetQueryObjecti64v; 208 interface->fGetQueryObjecti64v = noOpGLGetQueryObjecti64v;
209 interface->fGetQueryObjectiv = noOpGLGetQueryObjectiv; 209 interface->fGetQueryObjectiv = noOpGLGetQueryObjectiv;
210 interface->fGetQueryObjectui64v = noOpGLGetQueryObjectui64v; 210 interface->fGetQueryObjectui64v = noOpGLGetQueryObjectui64v;
211 interface->fGetQueryObjectuiv = noOpGLGetQueryObjectuiv; 211 interface->fGetQueryObjectuiv = noOpGLGetQueryObjectuiv;
212 interface->fGetQueryiv = noOpGLGetQueryiv; 212 interface->fGetQueryiv = noOpGLGetQueryiv;
213 interface->fGetProgramInfoLog = noOpGLGetInfoLog; 213 interface->fGetProgramInfoLog = noOpGLGetInfoLog;
214 interface->fGetProgramiv = noOpGLGetShaderOrProgramiv; 214 interface->fGetProgramiv = noOpGLGetShaderOrProgramiv;
215 interface->fGetShaderInfoLog = noOpGLGetInfoLog; 215 interface->fGetShaderInfoLog = noOpGLGetInfoLog;
216 interface->fGetShaderiv = noOpGLGetShaderOrProgramiv; 216 interface->fGetShaderiv = noOpGLGetShaderOrProgramiv;
217 interface->fGetString = noOpGLGetString; 217 interface->fGetString = noOpGLGetString;
218 interface->fGetStringi = noOpGLGetStringi;
218 interface->fGetTexLevelParameteriv = noOpGLGetTexLevelParameteriv; 219 interface->fGetTexLevelParameteriv = noOpGLGetTexLevelParameteriv;
219 interface->fGetUniformLocation = noOpGLGetUniformLocation; 220 interface->fGetUniformLocation = noOpGLGetUniformLocation;
220 interface->fLineWidth = noOpGLLineWidth; 221 interface->fLineWidth = noOpGLLineWidth;
221 interface->fLinkProgram = noOpGLLinkProgram; 222 interface->fLinkProgram = noOpGLLinkProgram;
222 interface->fPixelStorei = nullGLPixelStorei; 223 interface->fPixelStorei = nullGLPixelStorei;
223 interface->fQueryCounter = noOpGLQueryCounter; 224 interface->fQueryCounter = noOpGLQueryCounter;
224 interface->fReadBuffer = noOpGLReadBuffer; 225 interface->fReadBuffer = noOpGLReadBuffer;
225 interface->fReadPixels = nullGLReadPixels; 226 interface->fReadPixels = nullGLReadPixels;
226 interface->fScissor = noOpGLScissor; 227 interface->fScissor = noOpGLScissor;
227 interface->fShaderSource = noOpGLShaderSource; 228 interface->fShaderSource = noOpGLShaderSource;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 interface->fRenderbufferStorageMultisample = noOpGLRenderbufferStorageMu ltisample; 275 interface->fRenderbufferStorageMultisample = noOpGLRenderbufferStorageMu ltisample;
275 interface->fBlitFramebuffer = noOpGLBlitFramebuffer; 276 interface->fBlitFramebuffer = noOpGLBlitFramebuffer;
276 interface->fResolveMultisampleFramebuffer = noOpGLResolveMultisampleFram ebuffer; 277 interface->fResolveMultisampleFramebuffer = noOpGLResolveMultisampleFram ebuffer;
277 interface->fMapBuffer = nullGLMapBuffer; 278 interface->fMapBuffer = nullGLMapBuffer;
278 interface->fUnmapBuffer = nullGLUnmapBuffer; 279 interface->fUnmapBuffer = nullGLUnmapBuffer;
279 interface->fBindFragDataLocationIndexed = noOpGLBindFragDataLocationInde xed; 280 interface->fBindFragDataLocationIndexed = noOpGLBindFragDataLocationInde xed;
280 } 281 }
281 glInterface.get()->ref(); 282 glInterface.get()->ref();
282 return glInterface.get(); 283 return glInterface.get();
283 } 284 }
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLContextInfo.cpp ('k') | src/gpu/gl/GrGLDefines.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698