| 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 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 484 functions->fGetRenderbufferParameteriv = noOpGLGetRenderbufferParameteriv; | 484 functions->fGetRenderbufferParameteriv = noOpGLGetRenderbufferParameteriv; |
| 485 functions->fRenderbufferStorage = noOpGLRenderbufferStorage; | 485 functions->fRenderbufferStorage = noOpGLRenderbufferStorage; |
| 486 functions->fRenderbufferStorageMultisample = noOpGLRenderbufferStorageMultis
ample; | 486 functions->fRenderbufferStorageMultisample = noOpGLRenderbufferStorageMultis
ample; |
| 487 functions->fBlitFramebuffer = noOpGLBlitFramebuffer; | 487 functions->fBlitFramebuffer = noOpGLBlitFramebuffer; |
| 488 functions->fResolveMultisampleFramebuffer = noOpGLResolveMultisampleFramebuf
fer; | 488 functions->fResolveMultisampleFramebuffer = noOpGLResolveMultisampleFramebuf
fer; |
| 489 functions->fMatrixLoadf = noOpGLMatrixLoadf; | 489 functions->fMatrixLoadf = noOpGLMatrixLoadf; |
| 490 functions->fMatrixLoadIdentity = noOpGLMatrixLoadIdentity; | 490 functions->fMatrixLoadIdentity = noOpGLMatrixLoadIdentity; |
| 491 functions->fBindFragDataLocationIndexed = noOpGLBindFragDataLocationIndexed; | 491 functions->fBindFragDataLocationIndexed = noOpGLBindFragDataLocationIndexed; |
| 492 | 492 |
| 493 interface->fExtensions.init(kGL_GrGLStandard, functions->fGetString, functio
ns->fGetStringi, | 493 interface->fExtensions.init(kGL_GrGLStandard, functions->fGetString, functio
ns->fGetStringi, |
| 494 functions->fGetIntegerv); | 494 functions->fGetIntegerv, nullptr, GR_EGL_NO_DISP
LAY); |
| 495 return interface; | 495 return interface; |
| 496 } | 496 } |
| 497 | 497 |
| 498 ////////////////////////////////////////////////////////////////////////////// | 498 ////////////////////////////////////////////////////////////////////////////// |
| 499 | 499 |
| 500 static void* create_tls() { | 500 static void* create_tls() { |
| 501 State** current = new State*; | 501 State** current = new State*; |
| 502 *current = nullptr; | 502 *current = nullptr; |
| 503 return current; | 503 return current; |
| 504 } | 504 } |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 553 interface->fCallbackData = reinterpret_cast<GrGLInterfaceCallbackData>(fStat
e); | 553 interface->fCallbackData = reinterpret_cast<GrGLInterfaceCallbackData>(fStat
e); |
| 554 #endif | 554 #endif |
| 555 } | 555 } |
| 556 | 556 |
| 557 SkNullGLContext::~SkNullGLContext() { | 557 SkNullGLContext::~SkNullGLContext() { |
| 558 this->teardown(); | 558 this->teardown(); |
| 559 fState->unref(); | 559 fState->unref(); |
| 560 } | 560 } |
| 561 | 561 |
| 562 void SkNullGLContext::onPlatformMakeCurrent() const { set_current_context(fState
); } | 562 void SkNullGLContext::onPlatformMakeCurrent() const { set_current_context(fState
); } |
| OLD | NEW |