diff options
author | Brian Salomon <bsalomon@google.com> | 2017-12-07 12:33:05 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-12-07 17:56:59 +0000 |
commit | 384fab467e2a5f1754ec26eecde946ce28046d20 (patch) | |
tree | c19ad170f2932c666c937736be71237c335e79b3 /src/gpu/mtl/GrMtlGpu.h | |
parent | 1cfb6bc9b63e9840d198a1ea8b1a20da2bfde818 (diff) |
sk_spification of GrGpu creation.
Make GrContext::MakeGL take interface as sk_sp.
Make GrContext::MakeVulkan take GrVkBackendContext as sk_sp.
Change-Id: I13c22a57bd281c51738f503d9ed3418d35a466df
Reviewed-on: https://skia-review.googlesource.com/81842
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/mtl/GrMtlGpu.h')
-rw-r--r-- | src/gpu/mtl/GrMtlGpu.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpu/mtl/GrMtlGpu.h b/src/gpu/mtl/GrMtlGpu.h index fb2c368102..cb2744f0aa 100644 --- a/src/gpu/mtl/GrMtlGpu.h +++ b/src/gpu/mtl/GrMtlGpu.h @@ -22,8 +22,8 @@ struct GrMtlBackendContext; class GrMtlGpu : public GrGpu { public: - static GrGpu* Create(GrContext* context, const GrContextOptions& options, - id<MTLDevice> device, id<MTLCommandQueue> queue); + static sk_sp<GrGpu> Make(GrContext* context, const GrContextOptions& options, + id<MTLDevice> device, id<MTLCommandQueue> queue); ~GrMtlGpu() override {} |