From 87f852d1a30f040cfa0e9567b17ec236e14a0f41 Mon Sep 17 00:00:00 2001 From: Robert Phillips Date: Thu, 5 Apr 2018 19:37:46 +0000 Subject: Revert "Remove deprectated GrContext::MakeGL overloads that take raw ptr" This reverts commit efa60a1d13fa1de00a4cba0454fdd9ad375caa72. Reason for revert: Surprise! Google3 still uses these. Original change's description: > Remove deprectated GrContext::MakeGL overloads that take raw ptr > > Change-Id: Iae12bf61fa1e2f5d4b13b98198cddb7482656fdf > Reviewed-on: https://skia-review.googlesource.com/118660 > Reviewed-by: Greg Daniel > Commit-Queue: Brian Salomon TBR=egdaniel@google.com,bsalomon@google.com Change-Id: Ica09d80e1563924a286a4a6aa8a1f93cb5ca9c5d No-Presubmit: true No-Tree-Checks: true No-Try: true Reviewed-on: https://skia-review.googlesource.com/119001 Reviewed-by: Robert Phillips Commit-Queue: Robert Phillips --- src/gpu/GrDirectContext.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/gpu/GrDirectContext.cpp') diff --git a/src/gpu/GrDirectContext.cpp b/src/gpu/GrDirectContext.cpp index 6f8a777407..204d676686 100644 --- a/src/gpu/GrDirectContext.cpp +++ b/src/gpu/GrDirectContext.cpp @@ -100,6 +100,15 @@ sk_sp GrContext::MakeGL(sk_sp interface) { return MakeGL(std::move(interface), defaultOptions); } +sk_sp GrContext::MakeGL(const GrGLInterface* interface) { + return MakeGL(sk_ref_sp(interface)); +} + +sk_sp GrContext::MakeGL(const GrGLInterface* interface, + const GrContextOptions& options) { + return MakeGL(sk_ref_sp(interface), options); +} + sk_sp GrContext::MakeGL(sk_sp interface, const GrContextOptions& options) { sk_sp context(new GrDirectContext(kOpenGL_GrBackend)); -- cgit v1.2.3