Remove GrGLCreateNativeInterface

Bug: skia:13087
Change-Id: Ibaf7b223631a7282393cb670779a0a769bd0f86a
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/526301
Commit-Queue: Brian Salomon <bsalomon@google.com>
Auto-Submit: Brian Salomon <bsalomon@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
This commit is contained in:
Brian Salomon 2022-03-31 14:26:29 -04:00 committed by SkCQ
parent 355f0f9fa2
commit e679a08f9a
12 changed files with 2 additions and 24 deletions

View File

@ -5,6 +5,7 @@ This file includes a list of high level updates for each milestone release.
Milestone 102
-------------
* Add glGetFloatv and glSamplerParameterf to GrGLInterface.
* GrGLCreateNativeInterface is removed. Use GrGLMakeNativeInterface.
* * *

View File

@ -31,8 +31,6 @@ struct GrGLInterface;
* appropriate one to build.
*/
SK_API sk_sp<const GrGLInterface> GrGLMakeNativeInterface();
// Deprecated alternative to GrGLMakeNativeInterface().
SK_API const GrGLInterface* GrGLCreateNativeInterface();
/**
* GrContext uses the following interface to make all calls into OpenGL. When a

View File

@ -344,11 +344,6 @@ sk_sp<GrGpu> GrGLGpu::Make(sk_sp<const GrGLInterface> interface, const GrContext
GrDirectContext* direct) {
if (!interface) {
interface = GrGLMakeNativeInterface();
// For clients that have written their own GrGLCreateNativeInterface and haven't yet updated
// to GrGLMakeNativeInterface.
if (!interface) {
interface = sk_ref_sp(GrGLCreateNativeInterface());
}
if (!interface) {
return nullptr;
}

View File

@ -8,5 +8,3 @@
#include "include/gpu/gl/GrGLInterface.h"
sk_sp<const GrGLInterface> GrGLMakeNativeInterface() { return nullptr; }
const GrGLInterface* GrGLCreateNativeInterface() { return nullptr; }

View File

@ -9,5 +9,3 @@
#include "include/gpu/gl/egl/GrGLMakeEGLInterface.h"
sk_sp<const GrGLInterface> GrGLMakeNativeInterface() { return GrGLMakeEGLInterface(); }
const GrGLInterface* GrGLCreateNativeInterface() { return GrGLMakeNativeInterface().release(); }

View File

@ -25,5 +25,3 @@ sk_sp<const GrGLInterface> GrGLMakeNativeInterface() {
return GrGLMakeAssembledInterface(nullptr, glfw_get);
}
const GrGLInterface* GrGLCreateNativeInterface() { return GrGLMakeNativeInterface().release(); }

View File

@ -9,5 +9,3 @@
#include "include/gpu/gl/glx/GrGLMakeGLXInterface.h"
sk_sp<const GrGLInterface> GrGLMakeNativeInterface() { return GrGLMakeGLXInterface(); }
const GrGLInterface* GrGLCreateNativeInterface() { return GrGLMakeNativeInterface().release(); }

View File

@ -23,6 +23,4 @@ sk_sp<const GrGLInterface> GrGLMakeNativeInterface() {
return (GrGLFuncPtr)dlsym(ctx ? ctx : RTLD_DEFAULT, name); });
}
const GrGLInterface* GrGLCreateNativeInterface() { return GrGLMakeNativeInterface().release(); }
#endif // SK_BUILD_FOR_IOS

View File

@ -23,6 +23,4 @@ sk_sp<const GrGLInterface> GrGLMakeNativeInterface() {
return (GrGLFuncPtr)dlsym(ctx ? ctx : RTLD_DEFAULT, name); });
}
const GrGLInterface* GrGLCreateNativeInterface() { return GrGLMakeNativeInterface().release(); }
#endif // SK_BUILD_FOR_MAC

View File

@ -31,5 +31,3 @@ static GrGLFuncPtr webgl_get_gl_proc(void* ctx, const char name[]) {
sk_sp<const GrGLInterface> GrGLMakeNativeInterface() {
return GrGLMakeAssembledInterface(nullptr, webgl_get_gl_proc);
}
const GrGLInterface* GrGLCreateNativeInterface() { return GrGLMakeNativeInterface().release(); }

View File

@ -66,6 +66,4 @@ sk_sp<const GrGLInterface> GrGLMakeNativeInterface() {
#endif // ARM64
const GrGLInterface* GrGLCreateNativeInterface() { return GrGLMakeNativeInterface().release(); }
#endif//defined(SK_BUILD_FOR_WIN)

View File

@ -58,7 +58,7 @@ IOSGLTestContext::IOSGLTestContext(IOSGLTestContext* shareContext)
SkScopeExit restorer(context_restorer());
[EAGLContext setCurrentContext:fEAGLContext.get()];
sk_sp<const GrGLInterface> gl(GrGLCreateNativeInterface());
sk_sp<const GrGLInterface> gl = GrGLMakeNativeInterface();
if (nullptr == gl.get()) {
SkDebugf("Failed to create gl interface");
this->destroyGLContext();