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