blob: 88ecc0f5a3c9d56bcec3271dbc2b24740242b851 [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 "src/sksl/SkSLPool.h"
namespace SkSL {
Context::Context(ErrorReporter& errors, const ShaderCapsClass& caps, Mangler& mangler)
: fCaps(caps)
, fErrors(&errors)
, fMangler(&mangler) {
SkASSERT(!Pool::IsAttached());
}
Context::~Context() {
SkASSERT(!Pool::IsAttached());
}
} // namespace SkSL