diff options
author | 2017-07-25 10:05:01 -0400 | |
---|---|---|
committer | 2017-07-25 14:33:03 +0000 | |
commit | 02611d9afdd887ee443825ac88377f2eea093380 (patch) | |
tree | 3e35b4e4fde4b6f387f7bdb345b049c1ab76e182 /tools/gpu/GrContextFactory.cpp | |
parent | 10b6ad13f996d2f522bc057d17acea58e43a7f0b (diff) |
Add Make[backend] calls for creating GrContexts
Docs-Preview: https://skia.org/?cl=26369
Bug: skia:
Change-Id: I460ee63e466f85b05918479f068a2e5ca2d70550
Reviewed-on: https://skia-review.googlesource.com/26369
Commit-Queue: Greg Daniel <egdaniel@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'tools/gpu/GrContextFactory.cpp')
-rw-r--r-- | tools/gpu/GrContextFactory.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/tools/gpu/GrContextFactory.cpp b/tools/gpu/GrContextFactory.cpp index 0686b79902..b3ca1d929e 100644 --- a/tools/gpu/GrContextFactory.cpp +++ b/tools/gpu/GrContextFactory.cpp @@ -133,8 +133,6 @@ ContextInfo GrContextFactory::getContextInfoInternal(ContextType type, ContextOv } std::unique_ptr<TestContext> testCtx; - GrBackendContext backendContext = 0; - sk_sp<const GrGLInterface> glInterface; GrBackend backend = ContextTypeBackend(type); switch (backend) { case kOpenGL_GrBackend: { @@ -194,8 +192,6 @@ ContextInfo GrContextFactory::getContextInfoInternal(ContextType type, ContextOv return ContextInfo(); } testCtx.reset(glCtx); - glInterface.reset(SkRef(glCtx->gl())); - backendContext = reinterpret_cast<GrBackendContext>(glInterface.get()); break; } #ifdef SK_VULKAN @@ -220,7 +216,6 @@ ContextInfo GrContextFactory::getContextInfoInternal(ContextType type, ContextOv fSentinelGLContext.reset(CreatePlatformGLTestContext(kGLES_GrGLStandard)); } } - backendContext = testCtx->backendContext(); break; } #endif @@ -244,7 +239,6 @@ ContextInfo GrContextFactory::getContextInfoInternal(ContextType type, ContextOv if (!testCtx) { return ContextInfo(); } - backendContext = testCtx->backendContext(); break; } default: @@ -266,9 +260,6 @@ ContextInfo GrContextFactory::getContextInfoInternal(ContextType type, ContextOv grOptions.fAvoidStencilBuffers = true; } sk_sp<GrContext> grCtx = testCtx->makeGrContext(grOptions); - if (!grCtx.get() && kMetal_GrBackend != backend) { - grCtx.reset(GrContext::Create(backend, backendContext, grOptions)); - } if (!grCtx.get()) { return ContextInfo(); } |