Flutter Engine
 
Loading...
Searching...
No Matches
std Namespace Reference

Classes

struct  equal_to< impeller::Glyph >
 
struct  hash< impeller::DepthAttachmentDescriptor >
 
struct  hash< impeller::Font::Metrics >
 
struct  hash< impeller::Glyph >
 
struct  hash< impeller::StencilAttachmentDescriptor >
 
struct  hash< impeller::UniqueID >
 
struct  less< impeller::Glyph >
 
struct  less< impeller::UniqueID >
 

Typedefs

using DisplayList = flutter::DisplayList
 
using DlColor = flutter::DlColor
 
using DlPaint = flutter::DlPaint
 
using DlCanvas = flutter::DlCanvas
 
using DlImage = flutter::DlImage
 
using DlDrawStyle = flutter::DlDrawStyle
 
using DlBlendMode = flutter::DlBlendMode
 
using DlStrokeCap = flutter::DlStrokeCap
 
using DlStrokeJoin = flutter::DlStrokeJoin
 
using DlBlurStyle = flutter::DlBlurStyle
 
using DlFilterMode = flutter::DlFilterMode
 
using DlVertexMode = flutter::DlVertexMode
 
using DlTileMode = flutter::DlTileMode
 
using DlImageSampling = flutter::DlImageSampling
 
using SaveLayerOptions = flutter::SaveLayerOptions
 
using DisplayListOpType = flutter::DisplayListOpType
 
using DisplayListOpCategory = flutter::DisplayListOpCategory
 
using DlPathFillType = flutter::DlPathFillType
 
using DlPath = flutter::DlPath
 
using DisplayListStreamDispatcher = flutter::testing::DisplayListStreamDispatcher
 

Functions

std::ostream & operator<< (std::ostream &out, const impeller::Arc &a)
 
std::ostream & operator<< (std::ostream &out, const impeller::Color &c)
 
std::ostream & operator<< (std::ostream &out, const impeller::BlendMode &mode)
 
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)
 
std::ostream & operator<< (std::ostream &out, const impeller::RoundingRadii &rr)
 
std::ostream & operator<< (std::ostream &out, const impeller::RSTransform &rst)
 
std::ostream & operator<< (std::ostream &out, const impeller::Degrees &d)
 
std::ostream & operator<< (std::ostream &out, const impeller::Radians &r)
 
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)
 
std::ostream & operator<< (std::ostream &os, const DisplayList &display_list)
 
std::ostream & operator<< (std::ostream &os, const DlPaint &paint)
 
std::ostream & operator<< (std::ostream &os, const flutter::DisplayListOpType &type)
 
std::ostream & operator<< (std::ostream &os, const flutter::DisplayListOpCategory &category)
 
std::ostream & operator<< (std::ostream &os, const flutter::DlPathFillType &type)
 
std::ostream & operator<< (std::ostream &os, const SaveLayerOptions &options)
 
std::ostream & operator<< (std::ostream &os, const DlPath &path)
 
std::ostream & operator<< (std::ostream &os, const flutter::testing::DlVerbosePath &path)
 
std::ostream & operator<< (std::ostream &os, const flutter::DlClipOp &op)
 
std::ostream & operator<< (std::ostream &os, const flutter::DlSrcRectConstraint &constraint)
 
std::ostream & operator<< (std::ostream &os, const DlStrokeCap &cap)
 
std::ostream & operator<< (std::ostream &os, const DlStrokeJoin &join)
 
std::ostream & operator<< (std::ostream &os, const DlDrawStyle &style)
 
std::ostream & operator<< (std::ostream &os, const DlBlurStyle &style)
 
std::ostream & operator<< (std::ostream &os, const flutter::DlPointMode &mode)
 
std::ostream & operator<< (std::ostream &os, const DlFilterMode &mode)
 
std::ostream & operator<< (std::ostream &os, const DlColor &color)
 
std::ostream & operator<< (std::ostream &os, DlImageSampling sampling)
 
static std::ostream & operator<< (std::ostream &os, const flutter::DlText *text)
 
std::ostream & operator<< (std::ostream &os, const DlVertexMode &mode)
 
std::ostream & operator<< (std::ostream &os, const DlTileMode &mode)
 
std::ostream & operator<< (std::ostream &os, const DlImage *image)
 
std::ostream & operator<< (std::ostream &os, const flutter::DlImageFilter &filter)
 
std::ostream & operator<< (std::ostream &os, const flutter::DlColorFilter &filter)
 

Typedef Documentation

◆ DisplayList

Definition at line 47 of file display_list_testing.cc.

◆ DisplayListOpCategory

◆ DisplayListOpType

Definition at line 62 of file display_list_testing.cc.

◆ DisplayListStreamDispatcher

◆ DlBlendMode

Definition at line 53 of file display_list_testing.cc.

◆ DlBlurStyle

Definition at line 56 of file display_list_testing.cc.

◆ DlCanvas

Definition at line 50 of file display_list_testing.cc.

◆ DlColor

using std::DlColor = typedef flutter::DlColor

Definition at line 48 of file display_list_testing.cc.

◆ DlDrawStyle

Definition at line 52 of file display_list_testing.cc.

◆ DlFilterMode

Definition at line 57 of file display_list_testing.cc.

◆ DlImage

using std::DlImage = typedef flutter::DlImage

Definition at line 51 of file display_list_testing.cc.

◆ DlImageSampling

Definition at line 60 of file display_list_testing.cc.

◆ DlPaint

using std::DlPaint = typedef flutter::DlPaint

Definition at line 49 of file display_list_testing.cc.

◆ DlPath

using std::DlPath = typedef flutter::DlPath

Definition at line 65 of file display_list_testing.cc.

◆ DlPathFillType

Definition at line 64 of file display_list_testing.cc.

◆ DlStrokeCap

Definition at line 54 of file display_list_testing.cc.

◆ DlStrokeJoin

Definition at line 55 of file display_list_testing.cc.

◆ DlTileMode

Definition at line 59 of file display_list_testing.cc.

◆ DlVertexMode

Definition at line 58 of file display_list_testing.cc.

◆ SaveLayerOptions

Definition at line 61 of file display_list_testing.cc.

Function Documentation

◆ operator<<() [1/55]

std::ostream & std::operator<< ( std::ostream &  os,
const DisplayList display_list 
)

Definition at line 69 of file display_list_testing.cc.

70 {
71 DisplayListStreamDispatcher dispatcher(os);
72 os << std::boolalpha;
73 os << std::setprecision(std::numeric_limits<long double>::digits10 + 1);
74 os << "DisplayList {" << std::endl;
75 display_list.Dispatch(dispatcher);
76 os << "}" << std::endl;
77 return os;
78}
void Dispatch(DlOpReceiver &ctx) const

References flutter::DisplayList::Dispatch().

◆ operator<<() [2/55]

std::ostream & std::operator<< ( std::ostream &  os,
const DlBlurStyle style 
)

Definition at line 227 of file display_list_testing.cc.

227 {
228 switch (style) {
229 case DlBlurStyle::kNormal: return os << "BlurStyle::kNormal";
230 case DlBlurStyle::kSolid: return os << "BlurStyle::kSolid";
231 case DlBlurStyle::kOuter: return os << "BlurStyle::kOuter";
232 case DlBlurStyle::kInner: return os << "BlurStyle::kInner";
233 }
234}

◆ operator<<() [3/55]

std::ostream & std::operator<< ( std::ostream &  os,
const DlColor color 
)

Definition at line 253 of file display_list_testing.cc.

253 {
254 const char* color_space;
255 switch(color.getColorSpace()) {
257 color_space = "srgb";
258 break;
260 color_space = "srgb_xr";
261 break;
263 color_space = "p3";
264 break;
265 }
266 return os << "DlColor(" << //
267 color.getAlphaF() << ", " << //
268 color.getRedF() << ", " << //
269 color.getGreenF() << ", " << //
270 color.getBlueF() << ", " << //
271 color_space << ")";
272}
constexpr DlColorSpace getColorSpace() const
Definition dl_color.h:118
constexpr DlScalar getRedF() const
Definition dl_color.h:114
constexpr DlScalar getAlphaF() const
Definition dl_color.h:113
constexpr DlScalar getBlueF() const
Definition dl_color.h:116
constexpr DlScalar getGreenF() const
Definition dl_color.h:115

References flutter::DlColor::getAlphaF(), flutter::DlColor::getBlueF(), flutter::DlColor::getColorSpace(), flutter::DlColor::getGreenF(), flutter::DlColor::getRedF(), flutter::kDisplayP3, flutter::kExtendedSRGB, and flutter::kSRGB.

◆ operator<<() [4/55]

std::ostream & std::operator<< ( std::ostream &  os,
const DlDrawStyle style 
)

Definition at line 219 of file display_list_testing.cc.

219 {
220 switch (style) {
221 case DlDrawStyle::kFill: return os << "Style::kFill";
222 case DlDrawStyle::kStroke: return os << "Style::kStroke";
223 case DlDrawStyle::kStrokeAndFill: return os << "Style::kStrokeAnFill";
224 }
225}

◆ operator<<() [5/55]

std::ostream & std::operator<< ( std::ostream &  os,
const DlFilterMode mode 
)

Definition at line 244 of file display_list_testing.cc.

244 {
245 switch (mode) {
246 case DlFilterMode::kNearest: return os << "FilterMode::kNearest";
247 case DlFilterMode::kLinear: return os << "FilterMode::kLinear";
248
249 default: return os << "FilterMode::????";
250 }
251}

◆ operator<<() [6/55]

std::ostream & std::operator<< ( std::ostream &  os,
const DlImage image 
)

Definition at line 327 of file display_list_testing.cc.

327 {
328 if (image == nullptr) {
329 return os << "null image";
330 }
331 os << "&DlImage(" << image->width() << " x " << image->height() << ", ";
332 if (image->skia_image()) {
333 os << "skia(" << image->skia_image().get() << "), ";
334 }
335 if (image->impeller_texture()) {
336 os << "impeller(" << image->impeller_texture().get() << "), ";
337 }
338 return os << "isTextureBacked: " << image->isTextureBacked() << ")";
339}
FlutterVulkanImage * image

References image.

◆ operator<<() [7/55]

std::ostream & std::operator<< ( std::ostream &  os,
const DlPaint paint 
)

Definition at line 80 of file display_list_testing.cc.

80 {
81 os << "DlPaint("
82 << "isaa: " << paint.isAntiAlias() << ", "
83 << paint.getColor() << ", "
84 << paint.getBlendMode() << ", "
85 << paint.getDrawStyle();
86 if (paint.getDrawStyle() != DlDrawStyle::kFill) {
87 os << ", width: " << paint.getStrokeWidth()
88 << ", miter: " << paint.getStrokeMiter()
89 << ", " << paint.getStrokeCap()
90 << ", " << paint.getStrokeJoin();
91 }
92 if (paint.getColorSource()) {
93 os << ", " << paint.getColorSource();
94 }
95 if (paint.getColorFilter()) {
96 os << ", " << paint.getColorFilter();
97 }
98 if (paint.getImageFilter()) {
99 os << ", " << paint.getImageFilter();
100 }
101 if (paint.getMaskFilter()) {
102 os << ", " << paint.getMaskFilter();
103 }
104 if (paint.isInvertColors()) {
105 os << ", invertColors: " << paint.isInvertColors();
106 }
107 return os << ")";
108}
bool isAntiAlias() const
Definition dl_paint.h:57
DlStrokeCap getStrokeCap() const
Definition dl_paint.h:98
DlColor getColor() const
Definition dl_paint.h:69
DlBlendMode getBlendMode() const
Definition dl_paint.h:82
float getStrokeMiter() const
Definition dl_paint.h:120
DlStrokeJoin getStrokeJoin() const
Definition dl_paint.h:106
const std::shared_ptr< const DlMaskFilter > & getMaskFilter() const
Definition dl_paint.h:180
DlDrawStyle getDrawStyle() const
Definition dl_paint.h:90
const std::shared_ptr< const DlColorSource > & getColorSource() const
Definition dl_paint.h:126
const std::shared_ptr< DlImageFilter > & getImageFilter() const
Definition dl_paint.h:162
float getStrokeWidth() const
Definition dl_paint.h:114
const std::shared_ptr< const DlColorFilter > & getColorFilter() const
Definition dl_paint.h:144
bool isInvertColors() const
Definition dl_paint.h:63

References flutter::DlPaint::getBlendMode(), flutter::DlPaint::getColor(), flutter::DlPaint::getColorFilter(), flutter::DlPaint::getColorSource(), flutter::DlPaint::getDrawStyle(), flutter::DlPaint::getImageFilter(), flutter::DlPaint::getMaskFilter(), flutter::DlPaint::getStrokeCap(), flutter::DlPaint::getStrokeJoin(), flutter::DlPaint::getStrokeMiter(), flutter::DlPaint::getStrokeWidth(), flutter::DlPaint::isAntiAlias(), and flutter::DlPaint::isInvertColors().

◆ operator<<() [8/55]

std::ostream & std::operator<< ( std::ostream &  os,
const DlPath path 
)
extern

Definition at line 174 of file display_list_testing.cc.

174 {
175 return os << "DlPath("
176 << "bounds: " << path.GetBounds()
177 // should iterate over verbs and coordinates...
178 << ")";
179}

◆ operator<<() [9/55]

std::ostream & std::operator<< ( std::ostream &  os,
const DlStrokeCap cap 
)

Definition at line 203 of file display_list_testing.cc.

203 {
204 switch (cap) {
205 case DlStrokeCap::kButt: return os << "Cap::kButt";
206 case DlStrokeCap::kRound: return os << "Cap::kRound";
207 case DlStrokeCap::kSquare: return os << "Cap::kSquare";
208 }
209}

◆ operator<<() [10/55]

std::ostream & std::operator<< ( std::ostream &  os,
const DlStrokeJoin join 
)

Definition at line 211 of file display_list_testing.cc.

211 {
212 switch (join) {
213 case DlStrokeJoin::kMiter: return os << "Join::kMiter";
214 case DlStrokeJoin::kRound: return os << "Join::kRound";
215 case DlStrokeJoin::kBevel: return os << "Join::kBevel";
216 }
217}

◆ operator<<() [11/55]

std::ostream & std::operator<< ( std::ostream &  os,
const DlTileMode mode 
)

Definition at line 316 of file display_list_testing.cc.

316 {
317 switch (mode) {
318 case DlTileMode::kClamp: return os << "TileMode::kClamp";
319 case DlTileMode::kRepeat: return os << "TileMode::kRepeat";
320 case DlTileMode::kMirror: return os << "TileMode::kMirror";
321 case DlTileMode::kDecal: return os << "TileMode::kDecal";
322
323 default: return os << "TileMode::????";
324 }
325}

◆ operator<<() [12/55]

std::ostream & std::operator<< ( std::ostream &  os,
const DlVertexMode mode 
)

Definition at line 306 of file display_list_testing.cc.

306 {
307 switch (mode) {
308 case DlVertexMode::kTriangles: return os << "VertexMode::kTriangles";
309 case DlVertexMode::kTriangleStrip: return os << "VertexMode::kTriangleStrip";
310 case DlVertexMode::kTriangleFan: return os << "VertexMode::kTriangleFan";
311
312 default: return os << "VertexMode::????";
313 }
314}

◆ operator<<() [13/55]

std::ostream & std::operator<< ( std::ostream &  os,
const flutter::DisplayListOpCategory category 
)
extern

Definition at line 126 of file display_list_testing.cc.

127 {
128 switch (category) {
137 DLT_OSTREAM_CASE(DisplayListOpCategory, InvalidCategory);
138 }
139 // Not a valid enum, should never happen, but in case we encounter bad data.
140 return os << "DisplayListOpCategory::???";
141}
#define DLT_OSTREAM_CASE(enum_name, value_name)
DisplayListOpCategory

References DLT_OSTREAM_CASE.

◆ operator<<() [14/55]

std::ostream & std::operator<< ( std::ostream &  os,
const flutter::DisplayListOpType type 
)
extern

Definition at line 113 of file display_list_testing.cc.

114 {
115 switch (type) {
116#define DLT_OP_TYPE_CASE(V) DLT_OSTREAM_CASE(DisplayListOpType, V);
118 DLT_OP_TYPE_CASE(InvalidOp)
119
120#undef DLT_OP_TYPE_CASE
121 }
122 // Not a valid enum, should never happen, but in case we encounter bad data.
123 return os << "DisplayListOpType::???";
124}
GLenum type
#define FOR_EACH_DISPLAY_LIST_OP(V)
#define DLT_OP_TYPE_CASE(V)

References DLT_OP_TYPE_CASE, FOR_EACH_DISPLAY_LIST_OP, and type.

◆ operator<<() [15/55]

std::ostream & std::operator<< ( std::ostream &  os,
const flutter::DlClipOp op 
)

Definition at line 187 of file display_list_testing.cc.

187 {
188 switch (op) {
189 case flutter::DlClipOp::kDifference: return os << "DlClipOp::kDifference";
190 case flutter::DlClipOp::kIntersect: return os << "DlClipOp::kIntersect";
191 }
192}

References flutter::kDifference, and flutter::kIntersect.

◆ operator<<() [16/55]

std::ostream & std::operator<< ( std::ostream &  os,
const flutter::DlColorFilter filter 
)

Definition at line 347 of file display_list_testing.cc.

348 {
349 DisplayListStreamDispatcher(os, 0).out(filter);
350 return os;
351}

References flutter::testing::DisplayListStreamDispatcher::out().

◆ operator<<() [17/55]

std::ostream & std::operator<< ( std::ostream &  os,
const flutter::DlImageFilter filter 
)

Definition at line 341 of file display_list_testing.cc.

342 {
343 DisplayListStreamDispatcher(os, 0).out(filter);
344 return os;
345}

References flutter::testing::DisplayListStreamDispatcher::out().

◆ operator<<() [18/55]

std::ostream & std::operator<< ( std::ostream &  os,
const flutter::DlPathFillType type 
)
extern

Definition at line 143 of file display_list_testing.cc.

144 {
145 switch (type) {
148 }
149}

References DLT_OSTREAM_CASE, and type.

◆ operator<<() [19/55]

std::ostream & std::operator<< ( std::ostream &  os,
const flutter::DlPointMode mode 
)

Definition at line 236 of file display_list_testing.cc.

236 {
237 switch (mode) {
238 case flutter::DlPointMode::kPoints: return os << "PointMode::kPoints";
239 case flutter::DlPointMode::kLines: return os << "PointMode::kLines";
240 case flutter::DlPointMode::kPolygon: return os << "PointMode::kPolygon";
241 }
242}
@ kLines
draw each separate pair of points as a line segment
@ kPolygon
draw each pair of overlapping points as a line segment
@ kPoints
draw each point separately

References flutter::kLines, flutter::kPoints, and flutter::kPolygon.

◆ operator<<() [20/55]

std::ostream & std::operator<< ( std::ostream &  os,
const flutter::DlSrcRectConstraint constraint 
)

Definition at line 194 of file display_list_testing.cc.

194 {
195 switch (constraint) {
197 return os << "SrcRectConstraint::kFast";
199 return os << "SrcRectConstraint::kStrict";
200 }
201}

References flutter::kFast, and flutter::kStrict.

◆ operator<<() [21/55]

static std::ostream & std::operator<< ( std::ostream &  os,
const flutter::DlText text 
)
static

Definition at line 291 of file display_list_testing.cc.

291 {
292 auto blob = text->GetTextBlob();
293 if (blob != nullptr) {
294 return os << "&SkTextBlob(ID: " << blob->uniqueID() << ", " << blob->bounds() << ")";
295 }
296 auto frame = text->GetTextFrame();
297 if (frame != nullptr) {
298 auto bounds = frame->GetBounds();
299 return os << "&TextFrame("
300 << bounds.GetLeft() << ", " << bounds.GetTop() << " => "
301 << bounds.GetRight() << ", " << bounds.GetBottom() << ")";
302 }
303 return os << "no text";
304}
std::u16string text

References text.

◆ operator<<() [22/55]

std::ostream & std::operator<< ( std::ostream &  os,
const flutter::testing::DlVerbosePath path 
)
extern

Definition at line 181 of file display_list_testing.cc.

181 {
182 DisplayListStreamDispatcher dispatcher(os, 0);
183 dispatcher.out(path);
184 return os;
185}

References flutter::testing::DisplayListStreamDispatcher::out().

◆ operator<<() [23/55]

std::ostream & std::operator<< ( std::ostream &  os,
const SaveLayerOptions options 
)

Definition at line 153 of file display_list_testing.cc.

153 {
154 return os << "SaveLayerOptions("
155 << "renders_with_attributes: " << options.renders_with_attributes()
156 << ", "
157 << "can_distribute_opacity: " << options.can_distribute_opacity()
158 << ", "
159 << "contains_backdrop: " << options.contains_backdrop_filter()
160 << ", "
161 << "is_unbounded: " << options.content_is_unbounded()
162 << ")";
163}
bool renders_with_attributes() const
bool content_is_unbounded() const
bool contains_backdrop_filter() const
bool can_distribute_opacity() const

References flutter::SaveLayerOptions::can_distribute_opacity(), flutter::SaveLayerOptions::contains_backdrop_filter(), flutter::SaveLayerOptions::content_is_unbounded(), and flutter::SaveLayerOptions::renders_with_attributes().

◆ operator<<() [24/55]

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

Definition at line 9 of file assertions_skia.cc.

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

◆ operator<<() [25/55]

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<<() [26/55]

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}

◆ operator<<() [27/55]

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<<() [28/55]

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<<() [29/55]

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}

◆ operator<<() [30/55]

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}

◆ operator<<() [31/55]

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}

◆ operator<<() [32/55]

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}

◆ operator<<() [33/55]

static 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}

◆ operator<<() [34/55]

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}

◆ operator<<() [35/55]

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}

◆ operator<<() [36/55]

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}

◆ operator<<() [37/55]

std::ostream & std::operator<< ( std::ostream &  os,
DlImageSampling  sampling 
)

Definition at line 274 of file display_list_testing.cc.

274 {
275 switch (sampling) {
276 case DlImageSampling::kNearestNeighbor: {
277 return os << "NearestSampling";
278 }
279 case DlImageSampling::kLinear: {
280 return os << "LinearSampling";
281 }
282 case DlImageSampling::kMipmapLinear: {
283 return os << "MipmapSampling";
284 }
285 case DlImageSampling::kCubic: {
286 return os << "CubicSampling";
287 }
288 }
289}

◆ operator<<() [38/55]

std::ostream & std::operator<< ( std::ostream &  out,
const impeller::Arc a 
)
inline

Definition at line 141 of file arc.h.

141 {
142 out << "Arc(" << a.GetOvalBounds() << ", " << a.GetStart() << " + "
143 << a.GetSweep()
144 << (a.IncludeCenter() ? ", with center)" : ", without center)");
145 return out;
146}
constexpr bool IncludeCenter() const
Definition arc.h:110
constexpr Degrees GetSweep() const
Definition arc.h:108
constexpr Degrees GetStart() const
Definition arc.h:106
const Rect & GetOvalBounds() const
Return the bounds of the oval in which this arc is inscribed.
Definition arc.h:94

References impeller::Arc::GetOvalBounds(), impeller::Arc::GetStart(), impeller::Arc::GetSweep(), and impeller::Arc::IncludeCenter().

◆ operator<<() [39/55]

std::ostream & std::operator<< ( std::ostream &  out,
const impeller::BlendMode mode 
)
inline

Definition at line 933 of file color.h.

934 {
935 out << "BlendMode::k" << BlendModeToString(mode);
936 return out;
937}

◆ operator<<() [40/55]

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

Definition at line 927 of file color.h.

927 {
928 out << "(" << c.red << ", " << c.green << ", " << c.blue << ", " << c.alpha
929 << ")";
930 return out;
931}
Scalar blue
Definition color.h:138
Scalar alpha
Definition color.h:143
Scalar red
Definition color.h:128
Scalar green
Definition color.h:133

References impeller::Color::alpha, impeller::Color::blue, impeller::Color::green, and impeller::Color::red.

◆ operator<<() [41/55]

std::ostream & std::operator<< ( std::ostream &  out,
const impeller::Degrees d 
)
inline

Definition at line 106 of file scalar.h.

106 {
107 return out << "Degrees(" << d.degrees << ")";
108}
auto & d
Definition main.cc:28

References d.

◆ operator<<() [42/55]

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

Definition at line 161 of file half.h.

161 {
162 out << "(" << static_cast<impeller::Scalar>(p.x) << ")";
163 return out;
164}
float Scalar
Definition scalar.h:19
InternalHalf x
Definition half.h:42

References impeller::Half::x.

◆ operator<<() [43/55]

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

Definition at line 166 of file half.h.

167 {
168 out << "(" << static_cast<impeller::Scalar>(p.x) << ", "
169 << static_cast<impeller::Scalar>(p.y) << ")";
170 return out;
171}
InternalHalf x
Definition half.h:130
InternalHalf y
Definition half.h:131

References impeller::HalfVector2::x, and impeller::HalfVector2::y.

◆ operator<<() [44/55]

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

Definition at line 173 of file half.h.

174 {
175 out << "(" << static_cast<impeller::Scalar>(p.x) << ", "
176 << static_cast<impeller::Scalar>(p.y) << ", "
177 << static_cast<impeller::Scalar>(p.z) << ")";
178 return out;
179}
InternalHalf x
Definition half.h:102
InternalHalf z
Definition half.h:104
InternalHalf y
Definition half.h:103

References impeller::HalfVector3::x, impeller::HalfVector3::y, and impeller::HalfVector3::z.

◆ operator<<() [45/55]

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

Definition at line 181 of file half.h.

182 {
183 out << "(" << static_cast<impeller::Scalar>(p.x) << ", "
184 << static_cast<impeller::Scalar>(p.y) << ", "
185 << static_cast<impeller::Scalar>(p.z) << ", "
186 << static_cast<impeller::Scalar>(p.w) << ")";
187 return out;
188}
InternalHalf x
Definition half.h:61
InternalHalf w
Definition half.h:64
InternalHalf y
Definition half.h:62
InternalHalf z
Definition half.h:63

References impeller::HalfVector4::w, impeller::HalfVector4::x, impeller::HalfVector4::y, and impeller::HalfVector4::z.

◆ operator<<() [46/55]

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

Definition at line 109 of file handle_gles.h.

110 {
111 out << HandleTypeToString(handle.GetType()) << "(";
112 if (handle.IsDead()) {
113 out << "DEAD";
114 } else {
115 const std::optional<impeller::UniqueID>& name = handle.GetName();
116 if (name.has_value()) {
117 out << name.value().id;
118 } else {
119 out << "UNNAMED";
120 }
121 }
122 out << ")";
123 return out;
124}
constexpr bool IsDead() const
Determines if the handle is dead.
Definition handle_gles.h:53
HandleType GetType() const
Definition handle_gles.h:74
const std::optional< UniqueID > & GetName() const
Definition handle_gles.h:75
const char * name
Definition fuchsia.cc:49

References impeller::HandleGLES::GetName(), impeller::HandleGLES::GetType(), impeller::HandleGLES::IsDead(), and name.

◆ operator<<() [47/55]

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

Definition at line 728 of file matrix.h.

728 {
729 out << "(" << std::endl << std::fixed;
730 for (size_t i = 0; i < 4u; i++) {
731 for (size_t j = 0; j < 4u; j++) {
732 out << std::setw(15) << m.e[j][i] << ",";
733 }
734 out << std::endl;
735 }
736 out << ")";
737 return out;
738}
Scalar e[4][4]
Definition matrix.h:40

References impeller::Matrix::e, and i.

◆ operator<<() [48/55]

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}

References impeller::Quaternion::w, impeller::Quaternion::x, impeller::Quaternion::y, and impeller::Quaternion::z.

◆ operator<<() [49/55]

std::ostream & std::operator<< ( std::ostream &  out,
const impeller::Radians r 
)
inline

Definition at line 110 of file scalar.h.

110 {
111 return out << "Radians(" << r.radians << ")";
112}
Scalar radians
Definition scalar.h:45

References impeller::Radians::radians.

◆ operator<<() [50/55]

std::ostream & std::operator<< ( std::ostream &  out,
const impeller::RoundingRadii rr 
)
inline

Definition at line 93 of file rounding_radii.h.

94 {
95 out << "(" //
96 << "ul: " << rr.top_left << ", " //
97 << "ur: " << rr.top_right << ", " //
98 << "ll: " << rr.bottom_left << ", " //
99 << "lr: " << rr.bottom_right //
100 << ")";
101 return out;
102}

References impeller::RoundingRadii::bottom_left, impeller::RoundingRadii::bottom_right, impeller::RoundingRadii::top_left, and impeller::RoundingRadii::top_right.

◆ operator<<() [51/55]

std::ostream & std::operator<< ( std::ostream &  out,
const impeller::RSTransform rst 
)
inline

Definition at line 72 of file rstransform.h.

73 {
74 // clang-format off
75 out << "("
76 << "scos: " << rst.scaled_cos << ", "
77 << "ssin: " << rst.scaled_sin << ", "
78 << "origin: (" << rst.translate_x << ", "
79 << rst.translate_y << ")"
80 << ")";
81 // clang-format on
82 return out;
83}

References impeller::RSTransform::scaled_cos, impeller::RSTransform::scaled_sin, impeller::RSTransform::translate_x, and impeller::RSTransform::translate_y.

◆ operator<<() [52/55]

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

Definition at line 350 of file point.h.

351 {
352 out << "(" << p.x << ", " << p.y << ")";
353 return out;
354}

References impeller::TPoint< T >::x, and impeller::TPoint< T >::y.

◆ operator<<() [53/55]

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

Definition at line 171 of file size.h.

172 {
173 out << "(" << s.width << ", " << s.height << ")";
174 return out;
175}
Type height
Definition size.h:29
Type width
Definition size.h:28

References impeller::TSize< T >::height, and impeller::TSize< T >::width.

◆ operator<<() [54/55]

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

Definition at line 330 of file vector.h.

330 {
331 out << "(" << p.x << ", " << p.y << ", " << p.z << ")";
332 return out;
333}

References impeller::Vector3::x, impeller::Vector3::y, and impeller::Vector3::z.

◆ operator<<() [55/55]

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

Definition at line 335 of file vector.h.

335 {
336 out << "(" << p.x << ", " << p.y << ", " << p.z << ", " << p.w << ")";
337 return out;
338}

References impeller::Vector4::w, impeller::Vector4::x, impeller::Vector4::y, and impeller::Vector4::z.