aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2017-12-07 16:23:39 -0500
committerGravatar Brian Salomon <bsalomon@google.com>2017-12-07 21:29:03 +0000
commit990014d082e82e34ae53de05fabc012af3a24778 (patch)
tree76add14c8152babe44eaa8f0cf4be934eca1e2cb /src/gpu
parent7af060a8bcc250af00b0dadaf10d414765dc94f9 (diff)
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>
Diffstat (limited to 'src/gpu')
-rw-r--r--src/gpu/GrContext.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp
index e8f5c4b889..eaacdb1cad 100644
--- a/src/gpu/GrContext.cpp
+++ b/src/gpu/GrContext.cpp
@@ -94,6 +94,15 @@ sk_sp<GrContext> GrContext::MakeGL(sk_sp<const GrGLInterface> interface,
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);