Flutter Engine
The Flutter Engine
Classes | Typedefs | Functions
std Namespace Reference

Classes

struct  equal_to< impeller::Glyph >
 
struct  equal_to< impeller::ScaledFont >
 
struct  equal_to< impeller::SubpixelGlyph >
 
struct  hash< DFAState::Label >
 
struct  hash< fml::RefPtr< T > >
 
struct  hash< impeller::DepthAttachmentDescriptor >
 
struct  hash< impeller::Font::Metrics >
 
struct  hash< impeller::Glyph >
 
struct  hash< impeller::ScaledFont >
 
struct  hash< impeller::StencilAttachmentDescriptor >
 
struct  hash< impeller::SubpixelGlyph >
 
struct  hash< impeller::UniqueID >
 
struct  hash< skia::textlayout::FontArguments >
 
struct  less< impeller::Glyph >
 
struct  less< impeller::UniqueID >
 
struct  tuple_element< Index, myers::Segment >
 
struct  tuple_size< myers::Segment >
 

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 DisplayListStreamDispatcher = flutter::testing::DisplayListStreamDispatcher
 

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::TRect< T > &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 DlBlendMode &mode)
 
std::ostream & operator<< (std::ostream &os, const SaveLayerOptions &options)
 
static std::ostream & operator<< (std::ostream &os, const SkRect *rect)
 
static std::ostream & operator<< (std::ostream &os, const SkMatrix *matrix)
 
static std::ostream & operator<< (std::ostream &os, const SkRSXform &xform)
 
std::ostream & operator<< (std::ostream &os, const DlCanvas::ClipOp &op)
 
std::ostream & operator<< (std::ostream &os, const DlCanvas::SrcRectConstraint &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 DlCanvas::PointMode &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 SkTextBlob *blob)
 
static std::ostream & operator<< (std::ostream &os, const impeller::TextFrame *frame)
 
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)
 

Typedef Documentation

◆ DisplayList

Definition at line 43 of file display_list_testing.cc.

◆ DisplayListStreamDispatcher

Definition at line 59 of file display_list_testing.cc.

◆ DlBlendMode

Definition at line 49 of file display_list_testing.cc.

◆ DlBlurStyle

Definition at line 52 of file display_list_testing.cc.

◆ DlCanvas

Definition at line 46 of file display_list_testing.cc.

◆ DlColor

using std::DlColor = typedef flutter::DlColor

Definition at line 44 of file display_list_testing.cc.

◆ DlDrawStyle

Definition at line 48 of file display_list_testing.cc.

◆ DlFilterMode

Definition at line 53 of file display_list_testing.cc.

◆ DlImage

using std::DlImage = typedef flutter::DlImage

Definition at line 47 of file display_list_testing.cc.

◆ DlImageSampling

Definition at line 56 of file display_list_testing.cc.

◆ DlPaint

using std::DlPaint = typedef flutter::DlPaint

Definition at line 45 of file display_list_testing.cc.

◆ DlStrokeCap

Definition at line 50 of file display_list_testing.cc.

◆ DlStrokeJoin

Definition at line 51 of file display_list_testing.cc.

◆ DlTileMode

Definition at line 55 of file display_list_testing.cc.

◆ DlVertexMode

Definition at line 54 of file display_list_testing.cc.

◆ SaveLayerOptions

Definition at line 57 of file display_list_testing.cc.

Function Documentation

◆ operator<<() [1/48]

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

Definition at line 61 of file display_list_testing.cc.

62 {
63 DisplayListStreamDispatcher dispatcher(os);
64 os << std::boolalpha;
65 os << std::setprecision(std::numeric_limits<long double>::digits10 + 1);
66 os << "DisplayList {" << std::endl;
67 display_list.Dispatch(dispatcher);
68 os << "}" << std::endl;
69 return os;
70}
void Dispatch(DlOpReceiver &ctx) const

◆ operator<<() [2/48]

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

Definition at line 102 of file display_list_testing.cc.

102 {
103 switch (mode) {
104 case DlBlendMode::kClear: return os << "BlendMode::kClear";
105 case DlBlendMode::kSrc: return os << "BlendMode::kSrc";
106 case DlBlendMode::kDst: return os << "BlendMode::kDst";
107 case DlBlendMode::kSrcOver: return os << "BlendMode::kSrcOver";
108 case DlBlendMode::kDstOver: return os << "BlendMode::kDstOver";
109 case DlBlendMode::kSrcIn: return os << "BlendMode::kSrcIn";
110 case DlBlendMode::kDstIn: return os << "BlendMode::kDstIn";
111 case DlBlendMode::kSrcOut: return os << "BlendMode::kSrcOut";
112 case DlBlendMode::kDstOut: return os << "BlendMode::kDstOut";
113 case DlBlendMode::kSrcATop: return os << "BlendMode::kSrcATop";
114 case DlBlendMode::kDstATop: return os << "BlendMode::kDstATop";
115 case DlBlendMode::kXor: return os << "BlendMode::kXor";
116 case DlBlendMode::kPlus: return os << "BlendMode::kPlus";
117 case DlBlendMode::kModulate: return os << "BlendMode::kModulate";
118 case DlBlendMode::kScreen: return os << "BlendMode::kScreen";
119
120 case DlBlendMode::kOverlay: return os << "BlendMode::kOverlay";
121 case DlBlendMode::kDarken: return os << "BlendMode::kDarken";
122 case DlBlendMode::kLighten: return os << "BlendMode::kLighten";
123 case DlBlendMode::kColorDodge: return os << "BlendMode::kColorDodge";
124 case DlBlendMode::kColorBurn: return os << "BlendMode::kColorBurn";
125 case DlBlendMode::kHardLight: return os << "BlendMode::kHardLight";
126 case DlBlendMode::kSoftLight: return os << "BlendMode::kSoftLight";
127 case DlBlendMode::kDifference: return os << "BlendMode::kDifference";
128 case DlBlendMode::kExclusion: return os << "BlendMode::kExclusion";
129 case DlBlendMode::kMultiply: return os << "BlendMode::kMultiply";
130
131 case DlBlendMode::kHue: return os << "BlendMode::kHue";
132 case DlBlendMode::kSaturation: return os << "BlendMode::kSaturation";
133 case DlBlendMode::kColor: return os << "BlendMode::kColor";
134 case DlBlendMode::kLuminosity: return os << "BlendMode::kLuminosity";
135
136 default: return os << "BlendMode::????";
137 }
138}
static constexpr SkColor kColor
Definition: CanvasTest.cpp:265
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive mode
Definition: switches.h:228

◆ operator<<() [3/48]

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

Definition at line 258 of file display_list_testing.cc.

258 {
259 switch (style) {
260 case DlBlurStyle::kNormal: return os << "BlurStyle::kNormal";
261 case DlBlurStyle::kSolid: return os << "BlurStyle::kSolid";
262 case DlBlurStyle::kOuter: return os << "BlurStyle::kOuter";
263 case DlBlurStyle::kInner: return os << "BlurStyle::kInner";
264 }
265}
@ kNormal
Default priority level.
Definition: embedder.h:262

◆ operator<<() [4/48]

std::ostream & std::operator<< ( std::ostream &  os,
const DlCanvas::ClipOp op 
)

Definition at line 218 of file display_list_testing.cc.

218 {
219 switch (op) {
220 case DlCanvas::ClipOp::kDifference: return os << "ClipOp::kDifference";
221 case DlCanvas::ClipOp::kIntersect: return os << "ClipOp::kIntersect";
222 }
223}

◆ operator<<() [5/48]

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

Definition at line 267 of file display_list_testing.cc.

267 {
268 switch (mode) {
269 case DlCanvas::PointMode::kPoints: return os << "PointMode::kPoints";
270 case DlCanvas::PointMode::kLines: return os << "PointMode::kLines";
271 case DlCanvas::PointMode::kPolygon: return os << "PointMode::kPolygon";
272 }
273}
static const SkPoint kPoints[kNumLabels]
Definition: flippity.cpp:53

◆ operator<<() [6/48]

std::ostream & std::operator<< ( std::ostream &  os,
const DlCanvas::SrcRectConstraint constraint 
)

Definition at line 225 of file display_list_testing.cc.

225 {
226 switch (constraint) {
227 case DlCanvas::SrcRectConstraint::kFast:
228 return os << "SrcRectConstraint::kFast";
229 case DlCanvas::SrcRectConstraint::kStrict:
230 return os << "SrcRectConstraint::kStrict";
231 }
232}

◆ operator<<() [7/48]

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

Definition at line 284 of file display_list_testing.cc.

284 {
285 return os << "DlColor(" << std::hex << color.argb() << std::dec << ")";
286}
DlColor color

◆ operator<<() [8/48]

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

Definition at line 250 of file display_list_testing.cc.

250 {
251 switch (style) {
252 case DlDrawStyle::kFill: return os << "Style::kFill";
253 case DlDrawStyle::kStroke: return os << "Style::kStroke";
254 case DlDrawStyle::kStrokeAndFill: return os << "Style::kStrokeAnFill";
255 }
256}

◆ operator<<() [9/48]

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

Definition at line 275 of file display_list_testing.cc.

275 {
276 switch (mode) {
277 case DlFilterMode::kNearest: return os << "FilterMode::kNearest";
278 case DlFilterMode::kLinear: return os << "FilterMode::kLinear";
279
280 default: return os << "FilterMode::????";
281 }
282}
static constexpr skcms_TransferFunction kLinear
Definition: SkColorSpace.h:51

◆ operator<<() [10/48]

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

Definition at line 344 of file display_list_testing.cc.

344 {
345 if (image == nullptr) {
346 return os << "null image";
347 }
348 os << "&DlImage(" << image->width() << " x " << image->height() << ", ";
349 if (image->skia_image()) {
350 os << "skia(" << image->skia_image().get() << "), ";
351 }
352 if (image->impeller_texture()) {
353 os << "impeller(" << image->impeller_texture().get() << "), ";
354 }
355 return os << "isTextureBacked: " << image->isTextureBacked() << ")";
356}
int width() const
Definition: SkImage.h:285
virtual bool isTextureBacked() const =0
int height() const
Definition: SkImage.h:291
sk_sp< const SkImage > image
Definition: SkRecords.h:269

◆ operator<<() [11/48]

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

Definition at line 72 of file display_list_testing.cc.

72 {
73 os << "DlPaint("
74 << "isaa: " << paint.isAntiAlias() << ", "
75 << paint.getColor() << ", "
76 << paint.getBlendMode() << ", "
77 << paint.getDrawStyle();
78 if (paint.getDrawStyle() != DlDrawStyle::kFill) {
79 os << ", width: " << paint.getStrokeWidth()
80 << ", miter: " << paint.getStrokeMiter()
81 << ", " << paint.getStrokeCap()
82 << ", " << paint.getStrokeJoin();
83 }
84 if (paint.getColorSource()) {
85 os << ", " << paint.getColorSource();
86 }
87 if (paint.getColorFilter()) {
88 os << ", " << paint.getColorFilter();
89 }
90 if (paint.getImageFilter()) {
91 os << ", " << paint.getImageFilter();
92 }
93 if (paint.getMaskFilter()) {
94 os << ", " << paint.getMaskFilter();
95 }
96 if (paint.isInvertColors()) {
97 os << ", invertColors: " << paint.isInvertColors();
98 }
99 return os << ")";
100}
const Paint & paint
Definition: color_source.cc:38

◆ operator<<() [12/48]

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

Definition at line 234 of file display_list_testing.cc.

234 {
235 switch (cap) {
236 case DlStrokeCap::kButt: return os << "Cap::kButt";
237 case DlStrokeCap::kRound: return os << "Cap::kRound";
238 case DlStrokeCap::kSquare: return os << "Cap::kSquare";
239 }
240}

◆ operator<<() [13/48]

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

Definition at line 242 of file display_list_testing.cc.

242 {
243 switch (join) {
244 case DlStrokeJoin::kMiter: return os << "Join::kMiter";
245 case DlStrokeJoin::kRound: return os << "Join::kRound";
246 case DlStrokeJoin::kBevel: return os << "Join::kBevel";
247 }
248}
static SkString join(const CommandLineFlags::StringArray &)
Definition: skpbench.cpp:741

◆ operator<<() [14/48]

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

Definition at line 333 of file display_list_testing.cc.

333 {
334 switch (mode) {
335 case DlTileMode::kClamp: return os << "TileMode::kClamp";
336 case DlTileMode::kRepeat: return os << "TileMode::kRepeat";
337 case DlTileMode::kMirror: return os << "TileMode::kMirror";
338 case DlTileMode::kDecal: return os << "TileMode::kDecal";
339
340 default: return os << "TileMode::????";
341 }
342}

◆ operator<<() [15/48]

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

Definition at line 323 of file display_list_testing.cc.

323 {
324 switch (mode) {
325 case DlVertexMode::kTriangles: return os << "VertexMode::kTriangles";
326 case DlVertexMode::kTriangleStrip: return os << "VertexMode::kTriangleStrip";
327 case DlVertexMode::kTriangleFan: return os << "VertexMode::kTriangleFan";
328
329 default: return os << "VertexMode::????";
330 }
331}

◆ operator<<() [16/48]

static std::ostream & std::operator<< ( std::ostream &  os,
const impeller::TextFrame frame 
)
static

Definition at line 312 of file display_list_testing.cc.

313 {
314 if (frame == nullptr) {
315 return os << "no text";
316 }
317 auto bounds = frame->GetBounds();
318 return os << "&TextFrame("
319 << bounds.GetLeft() << ", " << bounds.GetTop() << " => "
320 << bounds.GetRight() << ", " << bounds.GetBottom() << ")";
321}
double frame
Definition: examples.cpp:31
Optional< SkRect > bounds
Definition: SkRecords.h:189

◆ operator<<() [17/48]

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

Definition at line 140 of file display_list_testing.cc.

140 {
141 return os << "SaveLayerOptions("
142 << "renders_with_attributes: " << options.renders_with_attributes()
143 << ", "
144 << "can_distribute_opacity: " << options.can_distribute_opacity()
145 << ", "
146 << "contains_backdrop: " << options.contains_backdrop_filter()
147 << ")";
148}
const char * options

◆ operator<<() [18/48]

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<<() [19/48]

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<<() [20/48]

static 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<<() [21/48]

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}
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
Definition: switches.h:259

◆ operator<<() [22/48]

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<<() [23/48]

static 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<<() [24/48]

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

Definition at line 205 of file display_list_testing.cc.

205 {
206 if (matrix) return os << "&" << *matrix;
207 return os << "no matrix";
208}
unsigned useCenter Optional< SkMatrix > matrix
Definition: SkRecords.h:258

◆ operator<<() [25/48]

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

static 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:430
bool isValid() const
Definition: SkPath.cpp:438

◆ operator<<() [27/48]

static 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
Definition: SkPoint_impl.h:164
float fY
y-axis value
Definition: SkPoint_impl.h:165

◆ operator<<() [28/48]

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

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

Definition at line 172 of file display_list_testing.cc.

172 {
173 return rect ? (os << "&" << *rect) : os << "no rect";
174}
sk_sp< SkBlender > blender SkRect rect
Definition: SkRecords.h:350

◆ operator<<() [30/48]

static 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<<() [31/48]

static std::ostream & std::operator<< ( std::ostream &  os,
const SkRSXform xform 
)
static

Definition at line 210 of file display_list_testing.cc.

210 {
211 return os << "SkRSXform("
212 << "scos: " << xform.fSCos << ", "
213 << "ssin: " << xform.fSSin << ", "
214 << "tx: " << xform.fTx << ", "
215 << "ty: " << xform.fTy << ")";
216}
SkScalar fTy
Definition: SkRSXform.h:45
SkScalar fSCos
Definition: SkRSXform.h:42
SkScalar fTx
Definition: SkRSXform.h:44
SkScalar fSSin
Definition: SkRSXform.h:43

◆ operator<<() [32/48]

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<<() [33/48]

static std::ostream & std::operator<< ( std::ostream &  os,
const SkTextBlob blob 
)
static

Definition at line 305 of file display_list_testing.cc.

305 {
306 if (blob == nullptr) {
307 return os << "no text";
308 }
309 return os << "&SkTextBlob(ID: " << blob->uniqueID() << ", " << blob->bounds() << ")";
310}
uint32_t uniqueID() const
Definition: SkTextBlob.h:59
const SkRect & bounds() const
Definition: SkTextBlob.h:53

◆ operator<<() [34/48]

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<<() [35/48]

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

Definition at line 288 of file display_list_testing.cc.

288 {
289 switch (sampling) {
290 case DlImageSampling::kNearestNeighbor: {
291 return os << "NearestSampling";
292 }
294 return os << "LinearSampling";
295 }
296 case DlImageSampling::kMipmapLinear: {
297 return os << "MipmapSampling";
298 }
299 case DlImageSampling::kCubic: {
300 return os << "CubicSampling";
301 }
302 }
303}
SkSamplingOptions sampling
Definition: SkRecords.h:337

◆ operator<<() [36/48]

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

Definition at line 961 of file color.h.

961 {
962 out << "(" << c.red << ", " << c.green << ", " << c.blue << ", " << c.alpha
963 << ")";
964 return out;
965}
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<<() [37/48]

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<<() [38/48]

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<<() [39/48]

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<<() [40/48]

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<<() [41/48]

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

Definition at line 72 of file handle_gles.h.

73 {
74 out << HandleTypeToString(handle.type) << "(";
75 if (handle.IsDead()) {
76 out << "DEAD";
77 } else {
78 if (handle.name.has_value()) {
79 out << handle.name.value().id;
80 } else {
81 out << "UNNAMED";
82 }
83 }
84 out << ")";
85 return out;
86}
std::string HandleTypeToString(HandleType type)
Definition: handle_gles.cc:11
constexpr bool IsDead() const
Definition: handle_gles.h:39
std::optional< UniqueID > name
Definition: handle_gles.h:33

◆ operator<<() [42/48]

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

Definition at line 593 of file matrix.h.

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

◆ operator<<() [43/48]

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<<() [44/48]

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

Definition at line 337 of file point.h.

338 {
339 out << "(" << p.x << ", " << p.y << ")";
340 return out;
341}

◆ operator<<() [45/48]

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

Definition at line 782 of file rect.h.

783 {
784 out << "(" << r.GetOrigin() << ", " << r.GetSize() << ")";
785 return out;
786}
constexpr TSize< Type > GetSize() const
Returns the size of the rectangle which may be negative in either width or height and may have been c...
Definition: rect.h:317
constexpr TPoint< Type > GetOrigin() const
Returns the upper left corner of the rectangle as specified by the left/top or x/y values when it was...
Definition: rect.h:310

◆ operator<<() [46/48]

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

Definition at line 149 of file size.h.

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

◆ operator<<() [47/48]

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

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}