xref: /aosp_15_r20/external/skia/src/sksl/SkSLContext.cpp (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
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 
Context(const BuiltinTypes & types,ErrorReporter & errors)17 Context::Context(const BuiltinTypes& types, ErrorReporter& errors)
18         : fTypes(types)
19         , fErrors(&errors) {
20     SkASSERT(!Pool::IsAttached());
21 }
22 
~Context()23 Context::~Context() {
24     SkASSERT(!Pool::IsAttached());
25 }
26 
27 }  // namespace SkSL
28 
29