| Index: src/gpu/GrContextFactory.cpp
|
| diff --git a/src/gpu/GrContextFactory.cpp b/src/gpu/GrContextFactory.cpp
|
| index fc1af6cfdb5616b19058a580e6773b3ce39b3706..4e1a3e0d64a50de804e9a21b8321c6505cf6061f 100755
|
| --- a/src/gpu/GrContextFactory.cpp
|
| +++ b/src/gpu/GrContextFactory.cpp
|
| @@ -18,6 +18,9 @@
|
| #if SK_MESA
|
| #include "gl/mesa/SkMesaGLContext.h"
|
| #endif
|
| +#if SK_VULKAN
|
| +#include "vk/GrVkBackendContext.h"
|
| +#endif
|
| #include "gl/SkGLContext.h"
|
| #include "gl/SkNullGLContext.h"
|
| #include "gl/GrGLGpu.h"
|
| @@ -127,14 +130,15 @@ GrContextFactory::ContextInfo GrContextFactory::getContextInfo(GLContextType typ
|
| }
|
|
|
| glCtx->makeCurrent();
|
| - GrBackendContext p3dctx = reinterpret_cast<GrBackendContext>(glInterface.get());
|
| #ifdef SK_VULKAN
|
| if (kEnableNVPR_GLContextOptions & options) {
|
| return ContextInfo();
|
| } else {
|
| + GrBackendContext p3dctx = reinterpret_cast<GrBackendContext>(GrVkBackendContext::Create());
|
| grCtx.reset(GrContext::Create(kVulkan_GrBackend, p3dctx, fGlobalOptions));
|
| }
|
| #else
|
| + GrBackendContext p3dctx = reinterpret_cast<GrBackendContext>(glInterface.get());
|
| grCtx.reset(GrContext::Create(kOpenGL_GrBackend, p3dctx, fGlobalOptions));
|
| #endif
|
| if (!grCtx.get()) {
|
|
|