Definition at line 28 of file giantbitmap.cpp.
◆ GiantBitmapGM()
GiantBitmapGM::GiantBitmapGM |
( |
SkTileMode |
mode, |
|
|
bool |
doFilter, |
|
|
bool |
doRotate |
|
) |
| |
|
inline |
Definition at line 70 of file giantbitmap.cpp.
70 : fBM(nullptr) {
72 fDoFilter = doFilter;
73 fDoRotate = doRotate;
74 }
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
◆ ~GiantBitmapGM()
GiantBitmapGM::~GiantBitmapGM |
( |
| ) |
|
|
inlineoverride |
◆ getISize()
SkISize GiantBitmapGM::getISize |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ getName()
SkString GiantBitmapGM::getName |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
Implements skiagm::GM.
Definition at line 79 of file giantbitmap.cpp.
79 {
81 switch (fMode) {
83 str.append("clamp");
84 break;
86 str.append("repeat");
87 break;
89 str.append("mirror");
90 break;
92 str.append("decal");
93 break;
94 default:
95 break;
96 }
97 str.append(fDoFilter ? "_bilerp" : "_point");
98 str.append(fDoRotate ? "_rotate" : "_scale");
99 return str;
100 }
◆ onDraw()
void GiantBitmapGM::onDraw |
( |
SkCanvas * |
canvas | ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 104 of file giantbitmap.cpp.
104 {
106
108 if (fDoRotate) {
110 } else {
113 }
114 paint.setShader(getBitmap().makeShader(
115 fMode, fMode,
119
121
123 }
void translate(SkScalar dx, SkScalar dy)
void drawPaint(const SkPaint &paint)
SkSamplingOptions(SkFilterMode::kLinear))
The documentation for this class was generated from the following file: