aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrDirectContext.cpp
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2018-04-06 09:18:00 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-04-06 14:44:53 +0000
commitc1b9c1005f1e07558c0d32cf8f80d022b312719e (patch)
treec0d85bc2d28c60e8a709814eb3680da61232d8a7 /src/gpu/GrDirectContext.cpp
parent9ca3065ca5bac6cc45c0ea5de23aebab92282227 (diff)
Add versions of MakeGL() that don't require include GrGLInterface.h in order to use the GrGLMakeNativeInterface
Change-Id: I77bd3c683c284aecc50a3552bbf1fb901f1bcc44 Reviewed-on: https://skia-review.googlesource.com/119002 Reviewed-by: Robert Phillips <robertphillips@google.com> Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/GrDirectContext.cpp')
-rw-r--r--src/gpu/GrDirectContext.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gpu/GrDirectContext.cpp b/src/gpu/GrDirectContext.cpp
index 204d676686..9407a7d08e 100644
--- a/src/gpu/GrDirectContext.cpp
+++ b/src/gpu/GrDirectContext.cpp
@@ -100,6 +100,15 @@ sk_sp<GrContext> GrContext::MakeGL(sk_sp<const GrGLInterface> interface) {
return MakeGL(std::move(interface), defaultOptions);
}
+sk_sp<GrContext> GrContext::MakeGL(const GrContextOptions& options) {
+ return MakeGL(nullptr, options);
+}
+
+sk_sp<GrContext> GrContext::MakeGL() {
+ GrContextOptions defaultOptions;
+ return MakeGL(nullptr, defaultOptions);
+}
+
sk_sp<GrContext> GrContext::MakeGL(const GrGLInterface* interface) {
return MakeGL(sk_ref_sp(interface));
}