Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Namespaces | Macros | Enumerations
Log.h File Reference

Go to the source code of this file.

Namespaces

namespace  skgpu
 
namespace  skgpu::graphite
 

Macros

#define SKGPU_LOWEST_ACTIVE_PRIORITY   skgpu::graphite::Priority::kError
 
#define SKGPU_LOG(priority, fmt, ...)
 
#define SKGPU_LOG_F(fmt, ...)
 
#define SKGPU_LOG_E(fmt, ...)
 
#define SKGPU_LOG_W(fmt, ...)
 
#define SKGPU_LOG_D(fmt, ...)
 

Enumerations

enum class  skgpu::graphite::Priority : int { skgpu::graphite::kFatal = 0 , skgpu::graphite::kError = 1 , skgpu::graphite::kWarning = 2 , skgpu::graphite::kDebug = 3 }
 

Macro Definition Documentation

◆ SKGPU_LOG

#define SKGPU_LOG (   priority,
  fmt,
  ... 
)
Value:
do { \
if (priority <= SKGPU_LOWEST_ACTIVE_PRIORITY) { \
SkDebugf("[graphite] " fmt "\n", ##__VA_ARGS__); \
if (priority == skgpu::graphite::Priority::kFatal) { \
SK_ABORT("Fatal log call"); \
} \
} \
} while (0)
#define SKGPU_LOWEST_ACTIVE_PRIORITY
Definition Log.h:24
static SkString fmt(SkColor4f c)
Definition p3.cpp:43

Definition at line 27 of file Log.h.

28 { \
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)

◆ SKGPU_LOG_D

#define SKGPU_LOG_D (   fmt,
  ... 
)
Value:
##__VA_ARGS__)
#define SKGPU_LOG(priority, fmt,...)
Definition Log.h:27

Definition at line 42 of file Log.h.

◆ SKGPU_LOG_E

#define SKGPU_LOG_E (   fmt,
  ... 
)
Value:

Definition at line 38 of file Log.h.

◆ SKGPU_LOG_F

#define SKGPU_LOG_F (   fmt,
  ... 
)
Value:
##__VA_ARGS__)

Definition at line 36 of file Log.h.

◆ SKGPU_LOG_W

#define SKGPU_LOG_W (   fmt,
  ... 
)
Value:

Definition at line 40 of file Log.h.

◆ SKGPU_LOWEST_ACTIVE_PRIORITY

#define SKGPU_LOWEST_ACTIVE_PRIORITY   skgpu::graphite::Priority::kError

Definition at line 24 of file Log.h.