John Stiles | 54e7c05 | 2021-01-11 14:22:36 -0500 | [diff] [blame] | 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" |
John Stiles | 2dda4b6 | 2021-09-16 13:18:10 -0400 | [diff] [blame^] | 9 | #include "src/sksl/SkSLPool.h" |
Ethan Nicholas | 4a5e22a | 2021-08-13 17:29:51 -0400 | [diff] [blame] | 10 | |
John Stiles | 54e7c05 | 2021-01-11 14:22:36 -0500 | [diff] [blame] | 11 | namespace SkSL { |
| 12 | |
John Stiles | 2dda4b6 | 2021-09-16 13:18:10 -0400 | [diff] [blame^] | 13 | Context::Context(ErrorReporter& errors, const ShaderCapsClass& caps, Mangler& mangler) |
Ethan Nicholas | 8d11654 | 2021-08-11 13:27:16 -0400 | [diff] [blame] | 14 | : fCaps(caps) |
John Stiles | 2dda4b6 | 2021-09-16 13:18:10 -0400 | [diff] [blame^] | 15 | , fErrors(&errors) |
| 16 | , fMangler(&mangler) { |
| 17 | SkASSERT(!Pool::IsAttached()); |
| 18 | } |
| 19 | |
| 20 | Context::~Context() { |
Ethan Nicholas | 624a529 | 2021-04-16 14:54:43 -0400 | [diff] [blame] | 21 | SkASSERT(!Pool::IsAttached()); |
| 22 | } |
John Stiles | 9121667 | 2021-04-27 17:38:44 -0400 | [diff] [blame] | 23 | |
John Stiles | 54e7c05 | 2021-01-11 14:22:36 -0500 | [diff] [blame] | 24 | } // namespace SkSL |
| 25 | |