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

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

Issue 1039693004: Add tokens and entry points for KHR_blend_equation_advanced (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Disable fBlendEquation validation Created 5 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 #include "gl/SkNullGLContext.h" 9 #include "gl/SkNullGLContext.h"
10 #include "gl/GrGLInterface.h" 10 #include "gl/GrGLInterface.h"
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 GrGLInterface::Functions* functions = &interface->fFunctions; 353 GrGLInterface::Functions* functions = &interface->fFunctions;
354 functions->fActiveTexture = nullGLActiveTexture; 354 functions->fActiveTexture = nullGLActiveTexture;
355 functions->fAttachShader = nullGLAttachShader; 355 functions->fAttachShader = nullGLAttachShader;
356 functions->fBeginQuery = nullGLBeginQuery; 356 functions->fBeginQuery = nullGLBeginQuery;
357 functions->fBindAttribLocation = nullGLBindAttribLocation; 357 functions->fBindAttribLocation = nullGLBindAttribLocation;
358 functions->fBindBuffer = nullGLBindBuffer; 358 functions->fBindBuffer = nullGLBindBuffer;
359 functions->fBindFragDataLocation = noOpGLBindFragDataLocation; 359 functions->fBindFragDataLocation = noOpGLBindFragDataLocation;
360 functions->fBindTexture = nullGLBindTexture; 360 functions->fBindTexture = nullGLBindTexture;
361 functions->fBindVertexArray = nullGLBindVertexArray; 361 functions->fBindVertexArray = nullGLBindVertexArray;
362 functions->fBlendColor = noOpGLBlendColor; 362 functions->fBlendColor = noOpGLBlendColor;
363 functions->fBlendEquation = noOpGLBlendEquation;
363 functions->fBlendFunc = noOpGLBlendFunc; 364 functions->fBlendFunc = noOpGLBlendFunc;
364 functions->fBufferData = nullGLBufferData; 365 functions->fBufferData = nullGLBufferData;
365 functions->fBufferSubData = noOpGLBufferSubData; 366 functions->fBufferSubData = noOpGLBufferSubData;
366 functions->fClear = noOpGLClear; 367 functions->fClear = noOpGLClear;
367 functions->fClearColor = noOpGLClearColor; 368 functions->fClearColor = noOpGLClearColor;
368 functions->fClearStencil = noOpGLClearStencil; 369 functions->fClearStencil = noOpGLClearStencil;
369 functions->fColorMask = noOpGLColorMask; 370 functions->fColorMask = noOpGLColorMask;
370 functions->fCompileShader = noOpGLCompileShader; 371 functions->fCompileShader = noOpGLCompileShader;
371 functions->fCompressedTexImage2D = noOpGLCompressedTexImage2D; 372 functions->fCompressedTexImage2D = noOpGLCompressedTexImage2D;
372 functions->fCompressedTexSubImage2D = noOpGLCompressedTexSubImage2D; 373 functions->fCompressedTexSubImage2D = noOpGLCompressedTexSubImage2D;
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 interface->fCallbackData = reinterpret_cast<GrGLInterfaceCallbackData>(fStat e); 550 interface->fCallbackData = reinterpret_cast<GrGLInterfaceCallbackData>(fStat e);
550 #endif 551 #endif
551 } 552 }
552 553
553 SkNullGLContext::~SkNullGLContext() { 554 SkNullGLContext::~SkNullGLContext() {
554 fGL.reset(NULL); 555 fGL.reset(NULL);
555 fState->unref(); 556 fState->unref();
556 } 557 }
557 558
558 void SkNullGLContext::makeCurrent() const { set_current_context(fState); } 559 void SkNullGLContext::makeCurrent() const { set_current_context(fState); }
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLNoOpInterface.cpp ('k') | src/gpu/gl/android/GrGLCreateNativeInterface_android.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698