| 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 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 444 functions->fFlushMappedBufferRange = nullGLFlushMappedBufferRange; | 444 functions->fFlushMappedBufferRange = nullGLFlushMappedBufferRange; |
| 445 functions->fFrontFace = noOpGLFrontFace; | 445 functions->fFrontFace = noOpGLFrontFace; |
| 446 functions->fGenBuffers = nullGLGenBuffers; | 446 functions->fGenBuffers = nullGLGenBuffers; |
| 447 functions->fGenerateMipmap = nullGLGenerateMipmap; | 447 functions->fGenerateMipmap = nullGLGenerateMipmap; |
| 448 functions->fGenQueries = noOpGLGenIds; | 448 functions->fGenQueries = noOpGLGenIds; |
| 449 functions->fGenTextures = noOpGLGenIds; | 449 functions->fGenTextures = noOpGLGenIds; |
| 450 functions->fGenVertexArrays = noOpGLGenIds; | 450 functions->fGenVertexArrays = noOpGLGenIds; |
| 451 functions->fGetBufferParameteriv = nullGLGetBufferParameteriv; | 451 functions->fGetBufferParameteriv = nullGLGetBufferParameteriv; |
| 452 functions->fGetError = noOpGLGetError; | 452 functions->fGetError = noOpGLGetError; |
| 453 functions->fGetIntegerv = noOpGLGetIntegerv; | 453 functions->fGetIntegerv = noOpGLGetIntegerv; |
| 454 functions->fGetMultisamplefv = noOpGLGetMultisamplefv; | |
| 455 functions->fGetQueryObjecti64v = noOpGLGetQueryObjecti64v; | 454 functions->fGetQueryObjecti64v = noOpGLGetQueryObjecti64v; |
| 456 functions->fGetQueryObjectiv = noOpGLGetQueryObjectiv; | 455 functions->fGetQueryObjectiv = noOpGLGetQueryObjectiv; |
| 457 functions->fGetQueryObjectui64v = noOpGLGetQueryObjectui64v; | 456 functions->fGetQueryObjectui64v = noOpGLGetQueryObjectui64v; |
| 458 functions->fGetQueryObjectuiv = noOpGLGetQueryObjectuiv; | 457 functions->fGetQueryObjectuiv = noOpGLGetQueryObjectuiv; |
| 459 functions->fGetQueryiv = noOpGLGetQueryiv; | 458 functions->fGetQueryiv = noOpGLGetQueryiv; |
| 460 functions->fGetProgramInfoLog = noOpGLGetInfoLog; | 459 functions->fGetProgramInfoLog = noOpGLGetInfoLog; |
| 461 functions->fGetProgramiv = noOpGLGetShaderOrProgramiv; | 460 functions->fGetProgramiv = noOpGLGetShaderOrProgramiv; |
| 462 functions->fGetShaderInfoLog = noOpGLGetInfoLog; | 461 functions->fGetShaderInfoLog = noOpGLGetInfoLog; |
| 463 functions->fGetShaderiv = noOpGLGetShaderOrProgramiv; | 462 functions->fGetShaderiv = noOpGLGetShaderOrProgramiv; |
| 464 functions->fGetString = noOpGLGetString; | 463 functions->fGetString = noOpGLGetString; |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 598 interface->fCallbackData = reinterpret_cast<GrGLInterfaceCallbackData>(fStat
e); | 597 interface->fCallbackData = reinterpret_cast<GrGLInterfaceCallbackData>(fStat
e); |
| 599 #endif | 598 #endif |
| 600 } | 599 } |
| 601 | 600 |
| 602 SkNullGLContext::~SkNullGLContext() { | 601 SkNullGLContext::~SkNullGLContext() { |
| 603 this->teardown(); | 602 this->teardown(); |
| 604 fState->unref(); | 603 fState->unref(); |
| 605 } | 604 } |
| 606 | 605 |
| 607 void SkNullGLContext::onPlatformMakeCurrent() const { set_current_context(fState
); } | 606 void SkNullGLContext::onPlatformMakeCurrent() const { set_current_context(fState
); } |
| OLD | NEW |