diff options
author | Greg Daniel <egdaniel@google.com> | 2017-07-13 15:07:54 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-07-13 21:29:33 +0000 |
commit | b76a72a659f53b8bf449c5ca2685045d08a21e43 (patch) | |
tree | cc2e1b3c997817f514438e79c248d3b890e65ef7 /src/gpu/mtl/GrMtlTrampoline.h | |
parent | ee3e0bacc8bedd1e3ebfb52fbc8b1cc3ccdad358 (diff) |
Add support for creating a GrContext backed by Metal.
Also adds the support code to allow our TestContext to create a Metal
backend.
Bug: skia:
Change-Id: Ia850687019d79b897bb16e2c151f4f8526721ad9
Reviewed-on: https://skia-review.googlesource.com/22644
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'src/gpu/mtl/GrMtlTrampoline.h')
-rw-r--r-- | src/gpu/mtl/GrMtlTrampoline.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gpu/mtl/GrMtlTrampoline.h b/src/gpu/mtl/GrMtlTrampoline.h index acce98cd1f..531a4ce00c 100644 --- a/src/gpu/mtl/GrMtlTrampoline.h +++ b/src/gpu/mtl/GrMtlTrampoline.h @@ -20,8 +20,10 @@ struct GrContextOptions; */ class GrMtlTrampoline { public: - static GrGpu* CreateGpu(GrBackendContext backendContext, const GrContextOptions& options, - GrContext* context); + static GrGpu* CreateGpu(GrContext* context, + const GrContextOptions& options, + void* device, + void* queue); }; #endif |