Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Classes | Functions
std Namespace Reference

Classes

struct  equal_to< impeller::Glyph >
 
struct  equal_to< impeller::ScaledFont >
 
struct  hash< DFAState::Label >
 
struct  hash< impeller::DepthAttachmentDescriptor >
 
struct  hash< impeller::Font::Metrics >
 
struct  hash< impeller::Glyph >
 
struct  hash< impeller::ScaledFont >
 
struct  hash< impeller::StencilAttachmentDescriptor >
 
struct  hash< impeller::UniqueID >
 
struct  less< impeller::Glyph >
 
struct  less< impeller::UniqueID >
 
struct  tuple_element< Index, myers::Segment >
 
struct  tuple_size< myers::Segment >
 

Functions

std::ostream & operator<< (std::ostream &out, const impeller::Color &c)
 
std::ostream & operator<< (std::ostream &out, const impeller::Half &p)
 
std::ostream & operator<< (std::ostream &out, const impeller::HalfVector2 &p)
 
std::ostream & operator<< (std::ostream &out, const impeller::HalfVector3 &p)
 
std::ostream & operator<< (std::ostream &out, const impeller::HalfVector4 &p)
 
std::ostream & operator<< (std::ostream &out, const impeller::Matrix &m)
 
template<class T >
std::ostream & operator<< (std::ostream &out, const impeller::TPoint< T > &p)
 
std::ostream & operator<< (std::ostream &out, const impeller::Quaternion &q)
 
template<class T >
std::ostream & operator<< (std::ostream &out, const impeller::TSize< T > &s)
 
std::ostream & operator<< (std::ostream &out, const impeller::Vector3 &p)
 
std::ostream & operator<< (std::ostream &out, const impeller::Vector4 &p)
 
std::ostream & operator<< (std::ostream &out, const impeller::HandleGLES &handle)
 
std::ostream & operator<< (std::ostream &os, const SkClipOp &o)
 
std::ostream & operator<< (std::ostream &os, const SkMatrix &m)
 
std::ostream & operator<< (std::ostream &os, const SkM44 &m)
 
std::ostream & operator<< (std::ostream &os, const SkVector3 &v)
 
std::ostream & operator<< (std::ostream &os, const SkIRect &r)
 
std::ostream & operator<< (std::ostream &os, const SkRect &r)
 
std::ostream & operator<< (std::ostream &os, const SkRRect &r)
 
std::ostream & operator<< (std::ostream &os, const SkPath &r)
 
std::ostream & operator<< (std::ostream &os, const SkPoint &r)
 
std::ostream & operator<< (std::ostream &os, const SkISize &size)
 
std::ostream & operator<< (std::ostream &os, const SkColor4f &r)
 
std::ostream & operator<< (std::ostream &os, const SkPaint &r)
 
std::ostream & operator<< (std::ostream &os, const SkSamplingOptions &s)
 

Function Documentation

◆ operator<<() [1/25]

std::ostream & std::operator<< ( std::ostream &  os,
const SkClipOp o 
)

Definition at line 9 of file assertions_skia.cc.

9 {
10 switch (o) {
12 os << "ClipOpDifference";
13 break;
15 os << "ClipOpIntersect";
16 break;
17 default:
18 os << "ClipOpUnknown" << static_cast<int>(o);
19 break;
20 }
21 return os;
22}

◆ operator<<() [2/25]

std::ostream & std::operator<< ( std::ostream &  os,
const SkColor4f r 
)

Definition at line 84 of file assertions_skia.cc.

84 {
85 return os << r.fR << ", " << r.fG << ", " << r.fB << ", " << r.fA;
86}

◆ operator<<() [3/25]

std::ostream & std::operator<< ( std::ostream &  os,
const SkIRect r 
)

Definition at line 55 of file assertions_skia.cc.

55 {
56 return os << "LTRB: " << r.fLeft << ", " << r.fTop << ", " << r.fRight << ", "
57 << r.fBottom;
58}
int32_t fBottom
larger y-axis bounds
Definition SkRect.h:36
int32_t fTop
smaller y-axis bounds
Definition SkRect.h:34
int32_t fLeft
smaller x-axis bounds
Definition SkRect.h:33
int32_t fRight
larger x-axis bounds
Definition SkRect.h:35

◆ operator<<() [4/25]

std::ostream & std::operator<< ( std::ostream &  os,
const SkISize size 
)

Definition at line 80 of file assertions_skia.cc.

80 {
81 return os << size.width() << ", " << size.height();
82}

◆ operator<<() [5/25]

std::ostream & std::operator<< ( std::ostream &  os,
const SkM44 m 
)

Definition at line 39 of file assertions_skia.cc.

39 {
40 os << m.rc(0, 0) << ", " << m.rc(0, 1) << ", " << m.rc(0, 2) << ", "
41 << m.rc(0, 3) << std::endl;
42 os << m.rc(1, 0) << ", " << m.rc(1, 1) << ", " << m.rc(1, 2) << ", "
43 << m.rc(1, 3) << std::endl;
44 os << m.rc(2, 0) << ", " << m.rc(2, 1) << ", " << m.rc(2, 2) << ", "
45 << m.rc(2, 3) << std::endl;
46 os << m.rc(3, 0) << ", " << m.rc(3, 1) << ", " << m.rc(3, 2) << ", "
47 << m.rc(3, 3);
48 return os;
49}

◆ operator<<() [6/25]

std::ostream & std::operator<< ( std::ostream &  os,
const SkMatrix m 
)

Definition at line 24 of file assertions_skia.cc.

24 {
25 os << std::endl;
26 os << "Scale X: " << m[SkMatrix::kMScaleX] << ", ";
27 os << "Skew X: " << m[SkMatrix::kMSkewX] << ", ";
28 os << "Trans X: " << m[SkMatrix::kMTransX] << std::endl;
29 os << "Skew Y: " << m[SkMatrix::kMSkewY] << ", ";
30 os << "Scale Y: " << m[SkMatrix::kMScaleY] << ", ";
31 os << "Trans Y: " << m[SkMatrix::kMTransY] << std::endl;
32 os << "Persp X: " << m[SkMatrix::kMPersp0] << ", ";
33 os << "Persp Y: " << m[SkMatrix::kMPersp1] << ", ";
34 os << "Persp Z: " << m[SkMatrix::kMPersp2];
35 os << std::endl;
36 return os;
37}
static constexpr int kMScaleX
horizontal scale factor
Definition SkMatrix.h:353
static constexpr int kMTransY
vertical translation
Definition SkMatrix.h:358
static constexpr int kMPersp1
input y perspective factor
Definition SkMatrix.h:360
static constexpr int kMPersp0
input x perspective factor
Definition SkMatrix.h:359
static constexpr int kMPersp2
perspective bias
Definition SkMatrix.h:361
static constexpr int kMTransX
horizontal translation
Definition SkMatrix.h:355
static constexpr int kMSkewY
vertical skew factor
Definition SkMatrix.h:356
static constexpr int kMScaleY
vertical scale factor
Definition SkMatrix.h:357
static constexpr int kMSkewX
horizontal skew factor
Definition SkMatrix.h:354

◆ operator<<() [7/25]

std::ostream & std::operator<< ( std::ostream &  os,
const SkPaint r 
)

Definition at line 88 of file assertions_skia.cc.

88 {
89 return os << "Color: " << r.getColor4f() << ", Style: " << r.getStyle()
90 << ", AA: " << r.isAntiAlias() << ", Shader: " << r.getShader();
91}
Style getStyle() const
Definition SkPaint.h:204
SkColor4f getColor4f() const
Definition SkPaint.h:232
bool isAntiAlias() const
Definition SkPaint.h:162
SkShader * getShader() const
Definition SkPaint.h:397

◆ operator<<() [8/25]

std::ostream & std::operator<< ( std::ostream &  os,
const SkPath r 
)

Definition at line 70 of file assertions_skia.cc.

70 {
71 return os << "Valid: " << r.isValid()
72 << ", FillType: " << static_cast<int>(r.getFillType())
73 << ", Bounds: " << r.getBounds();
74}
SkPathFillType getFillType() const
Definition SkPath.h:230
const SkRect & getBounds() const
Definition SkPath.cpp:420
bool isValid() const
Definition SkPath.cpp:428

◆ operator<<() [9/25]

std::ostream & std::operator<< ( std::ostream &  os,
const SkPoint r 
)

Definition at line 76 of file assertions_skia.cc.

76 {
77 return os << "XY: " << r.fX << ", " << r.fY;
78}
float fX
x-axis value
float fY
y-axis value

◆ operator<<() [10/25]

std::ostream & std::operator<< ( std::ostream &  os,
const SkRect r 
)

Definition at line 60 of file assertions_skia.cc.

60 {
61 return os << "LTRB: " << r.fLeft << ", " << r.fTop << ", " << r.fRight << ", "
62 << r.fBottom;
63}
SkScalar fBottom
larger y-axis bounds
Definition extension.cpp:17
SkScalar fLeft
smaller x-axis bounds
Definition extension.cpp:14
SkScalar fRight
larger x-axis bounds
Definition extension.cpp:16
SkScalar fTop
smaller y-axis bounds
Definition extension.cpp:15

◆ operator<<() [11/25]

std::ostream & std::operator<< ( std::ostream &  os,
const SkRRect r 
)

Definition at line 65 of file assertions_skia.cc.

65 {
66 return os << "LTRB: " << r.rect().fLeft << ", " << r.rect().fTop << ", "
67 << r.rect().fRight << ", " << r.rect().fBottom;
68}
const SkRect & rect() const
Definition SkRRect.h:264

◆ operator<<() [12/25]

std::ostream & std::operator<< ( std::ostream &  os,
const SkSamplingOptions s 
)

Definition at line 93 of file assertions_skia.cc.

93 {
94 if (s.useCubic) {
95 return os << "CubicResampler: " << s.cubic.B << ", " << s.cubic.C;
96 } else {
97 return os << "Filter: " << static_cast<int>(s.filter)
98 << ", Mipmap: " << static_cast<int>(s.mipmap);
99 }
100}
struct MyStruct s

◆ operator<<() [13/25]

std::ostream & std::operator<< ( std::ostream &  os,
const SkVector3 v 
)

Definition at line 51 of file assertions_skia.cc.

51 {
52 return os << v.x() << ", " << v.y() << ", " << v.z();
53}
SkScalar x() const
Definition SkPoint3.h:24
SkScalar y() const
Definition SkPoint3.h:25
SkScalar z() const
Definition SkPoint3.h:26

◆ operator<<() [14/25]

std::ostream & std::operator<< ( std::ostream &  out,
const impeller::Color c 
)
inline

Definition at line 951 of file color.h.

951 {
952 out << "(" << c.red << ", " << c.green << ", " << c.blue << ", " << c.alpha
953 << ")";
954 return out;
955}
Scalar blue
Definition color.h:138
Scalar alpha
Definition color.h:143
Scalar red
Definition color.h:128
Scalar green
Definition color.h:133

◆ operator<<() [15/25]

std::ostream & std::operator<< ( std::ostream &  out,
const impeller::Half p 
)
inline

Definition at line 163 of file half.h.

163 {
164 out << "(" << static_cast<impeller::Scalar>(p.x) << ")";
165 return out;
166}
float Scalar
Definition scalar.h:18

◆ operator<<() [16/25]

std::ostream & std::operator<< ( std::ostream &  out,
const impeller::HalfVector2 p 
)
inline

Definition at line 168 of file half.h.

169 {
170 out << "(" << static_cast<impeller::Scalar>(p.x) << ", "
171 << static_cast<impeller::Scalar>(p.y) << ")";
172 return out;
173}

◆ operator<<() [17/25]

std::ostream & std::operator<< ( std::ostream &  out,
const impeller::HalfVector3 p 
)
inline

Definition at line 175 of file half.h.

176 {
177 out << "(" << static_cast<impeller::Scalar>(p.x) << ", "
178 << static_cast<impeller::Scalar>(p.y) << ", "
179 << static_cast<impeller::Scalar>(p.z) << ")";
180 return out;
181}

◆ operator<<() [18/25]

std::ostream & std::operator<< ( std::ostream &  out,
const impeller::HalfVector4 p 
)
inline

Definition at line 183 of file half.h.

184 {
185 out << "(" << static_cast<impeller::Scalar>(p.x) << ", "
186 << static_cast<impeller::Scalar>(p.y) << ", "
187 << static_cast<impeller::Scalar>(p.z) << ", "
188 << static_cast<impeller::Scalar>(p.w) << ")";
189 return out;
190}

◆ operator<<() [19/25]

std::ostream & std::operator<< ( std::ostream &  out,
const impeller::HandleGLES handle 
)
inline

Definition at line 76 of file handle_gles.h.

77 {
78 out << HandleTypeToString(handle.type) << "(";
79 if (handle.IsDead()) {
80 out << "DEAD";
81 } else {
82 if (handle.name.has_value()) {
83 out << handle.name.value().id;
84 } else {
85 out << "UNNAMED";
86 }
87 }
88 out << ")";
89 return out;
90}
constexpr bool IsDead() const
Definition handle_gles.h:43
std::optional< UniqueID > name
Definition handle_gles.h:37

◆ operator<<() [20/25]

std::ostream & std::operator<< ( std::ostream &  out,
const impeller::Matrix m 
)
inline

Definition at line 591 of file matrix.h.

591 {
592 out << "(" << std::endl << std::fixed;
593 for (size_t i = 0; i < 4u; i++) {
594 for (size_t j = 0; j < 4u; j++) {
595 out << std::setw(15) << m.e[j][i] << ",";
596 }
597 out << std::endl;
598 }
599 out << ")";
600 return out;
601}

◆ operator<<() [21/25]

std::ostream & std::operator<< ( std::ostream &  out,
const impeller::Quaternion q 
)
inline

Definition at line 94 of file quaternion.h.

95 {
96 out << "(" << q.x << ", " << q.y << ", " << q.z << ", " << q.w << ")";
97 return out;
98}

◆ operator<<() [22/25]

template<class T >
std::ostream & std::operator<< ( std::ostream &  out,
const impeller::TPoint< T > &  p 
)
inline

Definition at line 331 of file point.h.

332 {
333 out << "(" << p.x << ", " << p.y << ")";
334 return out;
335}

◆ operator<<() [23/25]

template<class T >
std::ostream & std::operator<< ( std::ostream &  out,
const impeller::TSize< T > &  s 
)
inline

Definition at line 147 of file size.h.

148 {
149 out << "(" << s.width << ", " << s.height << ")";
150 return out;
151}

◆ operator<<() [24/25]

std::ostream & std::operator<< ( std::ostream &  out,
const impeller::Vector3 p 
)
inline

Definition at line 323 of file vector.h.

323 {
324 out << "(" << p.x << ", " << p.y << ", " << p.z << ")";
325 return out;
326}

◆ operator<<() [25/25]

std::ostream & std::operator<< ( std::ostream &  out,
const impeller::Vector4 p 
)
inline

Definition at line 328 of file vector.h.

328 {
329 out << "(" << p.x << ", " << p.y << ", " << p.z << ", " << p.w << ")";
330 return out;
331}