Definition at line 28 of file textblobcolortrans.cpp.
◆ TextBlobColorTrans()
skiagm::TextBlobColorTrans::TextBlobColorTrans |
( |
| ) |
|
|
inline |
◆ getISize()
SkISize skiagm::TextBlobColorTrans::getISize |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ getName()
SkString skiagm::TextBlobColorTrans::getName |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
◆ onDraw()
void skiagm::TextBlobColorTrans::onDraw |
( |
SkCanvas * |
canvas | ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 65 of file textblobcolortrans.cpp.
65 {
66
68
71
73
74
75
76
78
80 size_t colorIndex = 0;
88 }
89 }
constexpr SkColor SK_ColorYELLOW
constexpr SkColor SK_ColorLTGRAY
constexpr SkColor SK_ColorCYAN
constexpr SkColor SK_ColorGRAY
constexpr SkColor SK_ColorWHITE
#define SkScalarFloorToInt(x)
void translate(SkScalar dx, SkScalar dy)
void drawColor(SkColor color, SkBlendMode mode=SkBlendMode::kSrcOver)
void drawTextBlob(const SkTextBlob *blob, SkScalar x, SkScalar y, const SkPaint &paint)
const SkRect & bounds() const
Optional< SkRect > bounds
PODArray< SkColor > colors
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
◆ onOnceBeforeDraw()
void skiagm::TextBlobColorTrans::onOnceBeforeDraw |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 36 of file textblobcolortrans.cpp.
36 {
38
39
40
43 const char*
text =
"AB";
44
47
50
51
53 text =
"The quick brown fox jumps over the lazy dog.";
56
57
59 }
@ kUTF8
uses bytes to represent UTF-8 or ASCII
@ kAlias
no transparent pixels on glyph edges
font
Font Metadata and Metrics.
The documentation for this class was generated from the following file: