Temporarily readd old signature of GrContext::MakeGL
Change-Id: I9c785dd2fd14e422b7e84067053d0565a4d782b6
Reviewed-on: https://skia-review.googlesource.com/82340
Reviewed-by: Brian Salomon <bsalomon@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h
index 4aafab8..32bee50 100644
--- a/include/gpu/GrContext.h
+++ b/include/gpu/GrContext.h
@@ -58,6 +58,9 @@
static sk_sp<GrContext> MakeGL(sk_sp<const GrGLInterface>, const GrContextOptions&);
static sk_sp<GrContext> MakeGL(sk_sp<const GrGLInterface>);
+ // Deprecated
+ static sk_sp<GrContext> MakeGL(const GrGLInterface*);
+ static sk_sp<GrContext> MakeGL(const GrGLInterface*, const GrContextOptions&);
#ifdef SK_VULKAN
static sk_sp<GrContext> MakeVulkan(sk_sp<const GrVkBackendContext>, const GrContextOptions&);
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp
index e8f5c4b..eaacdb1 100644
--- a/src/gpu/GrContext.cpp
+++ b/src/gpu/GrContext.cpp
@@ -94,6 +94,15 @@
return context;
}
+sk_sp<GrContext> GrContext::MakeGL(const GrGLInterface* interface) {
+ return MakeGL(sk_ref_sp(interface));
+}
+
+sk_sp<GrContext> GrContext::MakeGL(const GrGLInterface* interface,
+ const GrContextOptions& options) {
+ return MakeGL(sk_ref_sp(interface), options);
+}
+
sk_sp<GrContext> GrContext::MakeMock(const GrMockOptions* mockOptions) {
GrContextOptions defaultOptions;
return MakeMock(mockOptions, defaultOptions);