• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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,const ShaderCaps * caps,ErrorReporter & errors)17 Context::Context(const BuiltinTypes& types, const ShaderCaps* caps, ErrorReporter& errors)
18         : fTypes(types)
19         , fCaps(caps)
20         , fErrors(&errors) {
21     SkASSERT(!Pool::IsAttached());
22 }
23 
~Context()24 Context::~Context() {
25     SkASSERT(!Pool::IsAttached());
26 }
27 
28 }  // namespace SkSL
29 
30