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; |
454 functions->fGetQueryObjecti64v = noOpGLGetQueryObjecti64v; | 455 functions->fGetQueryObjecti64v = noOpGLGetQueryObjecti64v; |
455 functions->fGetQueryObjectiv = noOpGLGetQueryObjectiv; | 456 functions->fGetQueryObjectiv = noOpGLGetQueryObjectiv; |
456 functions->fGetQueryObjectui64v = noOpGLGetQueryObjectui64v; | 457 functions->fGetQueryObjectui64v = noOpGLGetQueryObjectui64v; |
457 functions->fGetQueryObjectuiv = noOpGLGetQueryObjectuiv; | 458 functions->fGetQueryObjectuiv = noOpGLGetQueryObjectuiv; |
458 functions->fGetQueryiv = noOpGLGetQueryiv; | 459 functions->fGetQueryiv = noOpGLGetQueryiv; |
459 functions->fGetProgramInfoLog = noOpGLGetInfoLog; | 460 functions->fGetProgramInfoLog = noOpGLGetInfoLog; |
460 functions->fGetProgramiv = noOpGLGetShaderOrProgramiv; | 461 functions->fGetProgramiv = noOpGLGetShaderOrProgramiv; |
461 functions->fGetShaderInfoLog = noOpGLGetInfoLog; | 462 functions->fGetShaderInfoLog = noOpGLGetInfoLog; |
462 functions->fGetShaderiv = noOpGLGetShaderOrProgramiv; | 463 functions->fGetShaderiv = noOpGLGetShaderOrProgramiv; |
463 functions->fGetString = noOpGLGetString; | 464 functions->fGetString = noOpGLGetString; |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
597 interface->fCallbackData = reinterpret_cast<GrGLInterfaceCallbackData>(fStat
e); | 598 interface->fCallbackData = reinterpret_cast<GrGLInterfaceCallbackData>(fStat
e); |
598 #endif | 599 #endif |
599 } | 600 } |
600 | 601 |
601 SkNullGLContext::~SkNullGLContext() { | 602 SkNullGLContext::~SkNullGLContext() { |
602 this->teardown(); | 603 this->teardown(); |
603 fState->unref(); | 604 fState->unref(); |
604 } | 605 } |
605 | 606 |
606 void SkNullGLContext::onPlatformMakeCurrent() const { set_current_context(fState
); } | 607 void SkNullGLContext::onPlatformMakeCurrent() const { set_current_context(fState
); } |
OLD | NEW |