blob: d28fc9d7273f03732c35b209605f3bdd4745e8bd [file] [log] [blame]
/*
* Copyright 2021 Google LLC
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "src/sksl/SkSLContext.h"
#include "include/core/SkTypes.h"
#ifdef SK_DEBUG
#include "src/sksl/SkSLPool.h"
#endif
namespace SkSL {
Context::Context(const BuiltinTypes& types, const ShaderCaps* caps, ErrorReporter& errors)
: fTypes(types)
, fCaps(caps)
, fErrors(&errors) {
SkASSERT(!Pool::IsAttached());
}
Context::~Context() {
SkASSERT(!Pool::IsAttached());
}
} // namespace SkSL