Flutter Engine
The Flutter Engine
third_party
skia
src
sksl
ir
SkSLStatement.h
Go to the documentation of this file.
1
/*
2
* Copyright 2016 Google Inc.
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
#ifndef SKSL_STATEMENT
9
#define SKSL_STATEMENT
10
11
#include "
src/sksl/ir/SkSLIRNode.h
"
12
#include "
src/sksl/ir/SkSLSymbol.h
"
13
14
namespace
SkSL
{
15
16
/**
17
* Abstract supertype of all statements.
18
*/
19
class
Statement
:
public
IRNode
{
20
public
:
21
using
Kind
=
StatementKind
;
22
23
Statement
(
Position
pos
,
Kind
kind
)
24
:
INHERITED
(
pos
, (
int
)
kind
) {
25
SkASSERT
(
kind
>= Kind::kFirst &&
kind
<=
Kind::kLast
);
26
}
27
28
Kind
kind
()
const
{
29
return
(
Kind
)
fKind
;
30
}
31
32
virtual
bool
isEmpty
()
const
{
33
return
false
;
34
}
35
36
private
:
37
using
INHERITED =
IRNode
;
38
};
39
40
}
// namespace SkSL
41
42
#endif
pos
SkPoint pos
Definition:
ImageShaderTest.cpp:27
SkASSERT
#define SkASSERT(cond)
Definition:
SkAssert.h:116
SkSLIRNode.h
SkSLSymbol.h
SkSL::IRNode
Definition:
SkSLIRNode.h:98
SkSL::IRNode::IRNode
IRNode(const IRNode &)=delete
SkSL::IRNode::fKind
int fKind
Definition:
SkSLIRNode.h:149
SkSL::Position
Definition:
SkSLPosition.h:18
SkSL::Statement
Definition:
SkSLStatement.h:19
SkSL::Statement::kind
Kind kind() const
Definition:
SkSLStatement.h:28
SkSL::Statement::isEmpty
virtual bool isEmpty() const
Definition:
SkSLStatement.h:32
SkSL::Statement::Statement
Statement(Position pos, Kind kind)
Definition:
SkSLStatement.h:23
SkSL
Definition:
SkCapabilities.h:15
SkSL::StatementKind
StatementKind
Definition:
SkSLIRNode.h:43
SkSL::StatementKind::kLast
@ kLast
tools.skpbench.skpbench.int
int
Definition:
skpbench.py:49
Generated on Sun Jun 23 2024 21:56:34 for Flutter Engine by
1.9.4