1 /* 2 * Copyright 2021 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 8 #include "src/sksl/SkSLContext.h" 9 #include "src/sksl/SkSLPool.h" 10 11 namespace SkSL { 12 Context(ErrorReporter & errors,const ShaderCapsClass & caps,Mangler & mangler)13Context::Context(ErrorReporter& errors, const ShaderCapsClass& caps, Mangler& mangler) 14 : fCaps(caps) 15 , fErrors(&errors) 16 , fMangler(&mangler) { 17 SkASSERT(!Pool::IsAttached()); 18 } 19 ~Context()20Context::~Context() { 21 SkASSERT(!Pool::IsAttached()); 22 } 23 24 } // namespace SkSL 25 26