1 /* 2 * Copyright 2022 Google LLC 3 * 4 * Use of this source code is governed by a BSD-style license that can be 5 * found in the LICENSE file. 6 */ 7 #include "include/core/SkTypes.h" 8 9 #ifdef SK_ENABLE_SKSL 10 #include "include/gpu/GrDirectContext.h" 11 #include "include/sksl/DSLCore.h" 12 #include "include/sksl/DSLExpression.h" 13 #include "src/gpu/ganesh/GrDirectContextPriv.h" 14 #include "src/gpu/ganesh/GrGpu.h" 15 #include "tools/gpu/GrContextFactory.h" 16 17 using namespace SkSL::dsl; 18 19 // for use from SkSLDSLOnlyTest.cpp StartDSL(const sk_gpu_test::ContextInfo ctxInfo)20void StartDSL(const sk_gpu_test::ContextInfo ctxInfo) { 21 Start(ctxInfo.directContext()->priv().getGpu()->shaderCompiler()); 22 } 23 #endif 24