| 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 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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); } |
| OLD | NEW |