Flutter Engine
The Flutter Engine
third_party
skia
src
sksl
SkSLContext.cpp
Go to the documentation of this file.
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
SkASSERT
#define SkASSERT(cond)
Definition:
SkAssert.h:116
SkSLContext.h
SkSLPool.h
SkTypes.h
SkSL::BuiltinTypes
Definition:
SkSLBuiltinTypes.h:20
SkSL::Context::~Context
~Context()
Definition:
SkSLContext.cpp:23
SkSL::Context::Context
Context(const BuiltinTypes &types, ErrorReporter &errors)
Definition:
SkSLContext.cpp:17
SkSL::ErrorReporter
Definition:
SkSLErrorReporter.h:22
SkSL::Pool::IsAttached
static bool IsAttached()
Definition:
SkSLPool.cpp:44
SkSL
Definition:
SkCapabilities.h:15
compiler_layering_check.errors
def errors
Definition:
compiler_layering_check.py:128
Generated on Sun Jun 23 2024 21:56:35 for Flutter Engine by
1.9.4