OLD | NEW |
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 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 | 352 |
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->fBlendBarrier = noOpGLBlendBarrier; |
362 functions->fBlendColor = noOpGLBlendColor; | 363 functions->fBlendColor = noOpGLBlendColor; |
| 364 functions->fBlendEquation = noOpGLBlendEquation; |
363 functions->fBlendFunc = noOpGLBlendFunc; | 365 functions->fBlendFunc = noOpGLBlendFunc; |
364 functions->fBufferData = nullGLBufferData; | 366 functions->fBufferData = nullGLBufferData; |
365 functions->fBufferSubData = noOpGLBufferSubData; | 367 functions->fBufferSubData = noOpGLBufferSubData; |
366 functions->fClear = noOpGLClear; | 368 functions->fClear = noOpGLClear; |
367 functions->fClearColor = noOpGLClearColor; | 369 functions->fClearColor = noOpGLClearColor; |
368 functions->fClearStencil = noOpGLClearStencil; | 370 functions->fClearStencil = noOpGLClearStencil; |
369 functions->fColorMask = noOpGLColorMask; | 371 functions->fColorMask = noOpGLColorMask; |
370 functions->fCompileShader = noOpGLCompileShader; | 372 functions->fCompileShader = noOpGLCompileShader; |
371 functions->fCompressedTexImage2D = noOpGLCompressedTexImage2D; | 373 functions->fCompressedTexImage2D = noOpGLCompressedTexImage2D; |
372 functions->fCompressedTexSubImage2D = noOpGLCompressedTexSubImage2D; | 374 functions->fCompressedTexSubImage2D = noOpGLCompressedTexSubImage2D; |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
549 interface->fCallbackData = reinterpret_cast<GrGLInterfaceCallbackData>(fStat
e); | 551 interface->fCallbackData = reinterpret_cast<GrGLInterfaceCallbackData>(fStat
e); |
550 #endif | 552 #endif |
551 } | 553 } |
552 | 554 |
553 SkNullGLContext::~SkNullGLContext() { | 555 SkNullGLContext::~SkNullGLContext() { |
554 fGL.reset(NULL); | 556 fGL.reset(NULL); |
555 fState->unref(); | 557 fState->unref(); |
556 } | 558 } |
557 | 559 |
558 void SkNullGLContext::makeCurrent() const { set_current_context(fState); } | 560 void SkNullGLContext::makeCurrent() const { set_current_context(fState); } |
OLD | NEW |