| 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 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 477 functions->fReadBuffer = noOpGLReadBuffer; | 477 functions->fReadBuffer = noOpGLReadBuffer; |
| 478 functions->fReadPixels = nullGLReadPixels; | 478 functions->fReadPixels = nullGLReadPixels; |
| 479 functions->fScissor = noOpGLScissor; | 479 functions->fScissor = noOpGLScissor; |
| 480 functions->fShaderSource = noOpGLShaderSource; | 480 functions->fShaderSource = noOpGLShaderSource; |
| 481 functions->fStencilFunc = noOpGLStencilFunc; | 481 functions->fStencilFunc = noOpGLStencilFunc; |
| 482 functions->fStencilFuncSeparate = noOpGLStencilFuncSeparate; | 482 functions->fStencilFuncSeparate = noOpGLStencilFuncSeparate; |
| 483 functions->fStencilMask = noOpGLStencilMask; | 483 functions->fStencilMask = noOpGLStencilMask; |
| 484 functions->fStencilMaskSeparate = noOpGLStencilMaskSeparate; | 484 functions->fStencilMaskSeparate = noOpGLStencilMaskSeparate; |
| 485 functions->fStencilOp = noOpGLStencilOp; | 485 functions->fStencilOp = noOpGLStencilOp; |
| 486 functions->fStencilOpSeparate = noOpGLStencilOpSeparate; | 486 functions->fStencilOpSeparate = noOpGLStencilOpSeparate; |
| 487 functions->fTexBuffer = noOpGLTexBuffer; |
| 487 functions->fTexImage2D = noOpGLTexImage2D; | 488 functions->fTexImage2D = noOpGLTexImage2D; |
| 488 functions->fTexParameteri = noOpGLTexParameteri; | 489 functions->fTexParameteri = noOpGLTexParameteri; |
| 489 functions->fTexParameteriv = noOpGLTexParameteriv; | 490 functions->fTexParameteriv = noOpGLTexParameteriv; |
| 490 functions->fTexSubImage2D = noOpGLTexSubImage2D; | 491 functions->fTexSubImage2D = noOpGLTexSubImage2D; |
| 491 functions->fTexStorage2D = noOpGLTexStorage2D; | 492 functions->fTexStorage2D = noOpGLTexStorage2D; |
| 492 functions->fDiscardFramebuffer = noOpGLDiscardFramebuffer; | 493 functions->fDiscardFramebuffer = noOpGLDiscardFramebuffer; |
| 493 functions->fUniform1f = noOpGLUniform1f; | 494 functions->fUniform1f = noOpGLUniform1f; |
| 494 functions->fUniform1i = noOpGLUniform1i; | 495 functions->fUniform1i = noOpGLUniform1i; |
| 495 functions->fUniform1fv = noOpGLUniform1fv; | 496 functions->fUniform1fv = noOpGLUniform1fv; |
| 496 functions->fUniform1iv = noOpGLUniform1iv; | 497 functions->fUniform1iv = noOpGLUniform1iv; |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 598 interface->fCallbackData = reinterpret_cast<GrGLInterfaceCallbackData>(fStat
e); | 599 interface->fCallbackData = reinterpret_cast<GrGLInterfaceCallbackData>(fStat
e); |
| 599 #endif | 600 #endif |
| 600 } | 601 } |
| 601 | 602 |
| 602 SkNullGLContext::~SkNullGLContext() { | 603 SkNullGLContext::~SkNullGLContext() { |
| 603 this->teardown(); | 604 this->teardown(); |
| 604 fState->unref(); | 605 fState->unref(); |
| 605 } | 606 } |
| 606 | 607 |
| 607 void SkNullGLContext::onPlatformMakeCurrent() const { set_current_context(fState
); } | 608 void SkNullGLContext::onPlatformMakeCurrent() const { set_current_context(fState
); } |
| OLD | NEW |