Debian Codegraph @

src/sksl/SkSLContext.cpp

raw
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
10 #include "include/core/SkTypes.h"
11 #ifdef SK_DEBUG
12 #include "src/sksl/SkSLPool.h"
13 #endif
14
15 namespace SkSL {
16
17 Context::Context(const BuiltinTypes& types, ErrorReporter& errors)
18 : fTypes(types)
19 , fErrors(&errors) {
20 SkASSERT(!Pool::IsAttached());
21 }
22
23 Context::~Context() {
24 SkASSERT(!Pool::IsAttached());
25 }
26
27 } // namespace SkSL
28