From 02611d9afdd887ee443825ac88377f2eea093380 Mon Sep 17 00:00:00 2001 From: Greg Daniel Date: Tue, 25 Jul 2017 10:05:01 -0400 Subject: 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 Reviewed-by: Brian Salomon --- tools/gpu/GrContextFactory.cpp | 9 --------- 1 file changed, 9 deletions(-) (limited to 'tools/gpu/GrContextFactory.cpp') 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 testCtx; - GrBackendContext backendContext = 0; - sk_sp 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(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 grCtx = testCtx->makeGrContext(grOptions); - if (!grCtx.get() && kMetal_GrBackend != backend) { - grCtx.reset(GrContext::Create(backend, backendContext, grOptions)); - } if (!grCtx.get()) { return ContextInfo(); } -- cgit v1.2.3