Flutter Engine
The Flutter Engine
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Properties
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Related Functions
:
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
z
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
v
w
y
Enumerator
b
c
d
e
f
g
h
k
l
m
n
p
r
s
t
u
v
w
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
third_party
skia
src
gpu
graphite
Log.h
Go to the documentation of this file.
1
/*
2
* Copyright 2022 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
#ifndef skgpu_graphite_Log_DEFINED
9
#define skgpu_graphite_Log_DEFINED
10
11
namespace
skgpu::graphite
{
12
enum class
Priority
:
int
{
13
kFatal
= 0,
14
kError = 1,
15
kWarning = 2,
16
kDebug
= 3,
17
};
18
};
// namespace skgpu::graphite
19
20
#if !defined(SKGPU_LOWEST_ACTIVE_PRIORITY)
21
#ifdef SK_DEBUG
22
#define SKGPU_LOWEST_ACTIVE_PRIORITY skgpu::graphite::Priority::kWarning
23
#else
24
#define SKGPU_LOWEST_ACTIVE_PRIORITY skgpu::graphite::Priority::kError
25
#endif
26
#endif
27
#define SKGPU_LOG(priority, fmt, ...) \
28
do { \
29
if (priority <= SKGPU_LOWEST_ACTIVE_PRIORITY) { \
30
SkDebugf("[graphite] "
fmt "\n", ##__VA_ARGS__); \
31
if (priority == skgpu::graphite::Priority::kFatal) { \
32
SK_ABORT("Fatal log call"); \
33
} \
34
} \
35
} while (0)
36
#define SKGPU_LOG_F(fmt, ...) SKGPU_LOG(skgpu::graphite::Priority::kFatal, "** ERROR ** "
fmt, \
37
##__VA_ARGS__)
38
#define SKGPU_LOG_E(fmt, ...) SKGPU_LOG(skgpu::graphite::Priority::kError, "** ERROR ** "
fmt, \
39
##__VA_ARGS__)
40
#define SKGPU_LOG_W(fmt, ...) SKGPU_LOG(skgpu::graphite::Priority::kWarning, "WARNING - "
fmt, \
41
##__VA_ARGS__)
42
#define SKGPU_LOG_D(fmt, ...) SKGPU_LOG(skgpu::graphite::Priority::kDebug, fmt, \
43
##__VA_ARGS__)
44
45
#endif
// skgpu_graphite_Log_DEFINED
skgpu::graphite
Definition:
BoundsManagerBench.cpp:27
skgpu::graphite::Priority
Priority
Definition:
Log.h:12
skgpu::graphite::Priority::kDebug
@ kDebug
skgpu::graphite::Priority::kFatal
@ kFatal
Generated on Sun Jun 23 2024 21:56:26 for Flutter Engine by
1.9.4