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

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

Issue 133413003: Rename GrGLBinding->GrGLStandard, no longer a bitfield (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: actually fix enum names? Created 6 years, 11 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 * 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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 259
260 } // end anonymous namespace 260 } // end anonymous namespace
261 261
262 const GrGLInterface* GrGLCreateNullInterface() { 262 const GrGLInterface* GrGLCreateNullInterface() {
263 // The gl functions are not context-specific so we create one global 263 // The gl functions are not context-specific so we create one global
264 // interface 264 // interface
265 static SkAutoTUnref<GrGLInterface> glInterface; 265 static SkAutoTUnref<GrGLInterface> glInterface;
266 if (!glInterface.get()) { 266 if (!glInterface.get()) {
267 GrGLInterface* interface = SkNEW(GrGLInterface); 267 GrGLInterface* interface = SkNEW(GrGLInterface);
268 glInterface.reset(interface); 268 glInterface.reset(interface);
269 interface->fBindingsExported = kDesktop_GrGLBinding; 269 interface->fStandard = kGL_GrGLStandard;
270 interface->fActiveTexture = nullGLActiveTexture; 270 interface->fActiveTexture = nullGLActiveTexture;
271 interface->fAttachShader = nullGLAttachShader; 271 interface->fAttachShader = nullGLAttachShader;
272 interface->fBeginQuery = nullGLBeginQuery; 272 interface->fBeginQuery = nullGLBeginQuery;
273 interface->fBindAttribLocation = nullGLBindAttribLocation; 273 interface->fBindAttribLocation = nullGLBindAttribLocation;
274 interface->fBindBuffer = nullGLBindBuffer; 274 interface->fBindBuffer = nullGLBindBuffer;
275 interface->fBindFragDataLocation = noOpGLBindFragDataLocation; 275 interface->fBindFragDataLocation = noOpGLBindFragDataLocation;
276 interface->fBindTexture = nullGLBindTexture; 276 interface->fBindTexture = nullGLBindTexture;
277 interface->fBindVertexArray = nullGLBindVertexArray; 277 interface->fBindVertexArray = nullGLBindVertexArray;
278 interface->fBlendColor = noOpGLBlendColor; 278 interface->fBlendColor = noOpGLBlendColor;
279 interface->fBlendFunc = noOpGLBlendFunc; 279 interface->fBlendFunc = noOpGLBlendFunc;
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 interface->fRenderbufferStorageMultisample = noOpGLRenderbufferStorageMu ltisample; 397 interface->fRenderbufferStorageMultisample = noOpGLRenderbufferStorageMu ltisample;
398 interface->fBlitFramebuffer = noOpGLBlitFramebuffer; 398 interface->fBlitFramebuffer = noOpGLBlitFramebuffer;
399 interface->fResolveMultisampleFramebuffer = noOpGLResolveMultisampleFram ebuffer; 399 interface->fResolveMultisampleFramebuffer = noOpGLResolveMultisampleFram ebuffer;
400 interface->fMapBuffer = nullGLMapBuffer; 400 interface->fMapBuffer = nullGLMapBuffer;
401 interface->fUnmapBuffer = nullGLUnmapBuffer; 401 interface->fUnmapBuffer = nullGLUnmapBuffer;
402 interface->fBindFragDataLocationIndexed = noOpGLBindFragDataLocationInde xed; 402 interface->fBindFragDataLocationIndexed = noOpGLBindFragDataLocationInde xed;
403 } 403 }
404 glInterface.get()->ref(); 404 glInterface.get()->ref();
405 return glInterface.get(); 405 return glInterface.get();
406 } 406 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698