Definition at line 17 of file PictureNestingBench.cpp.
◆ PictureNesting()
PictureNesting::PictureNesting |
( |
const char * |
name, |
|
|
int |
maxLevel, |
|
|
int |
maxPictureLevel |
|
) |
| |
|
inline |
Definition at line 19 of file PictureNestingBench.cpp.
22 fName.
printf(
"picture_nesting_%s_%d",
name, this->countPics());
26 }
constexpr SkColor SK_ColorRED
void setStyle(Style style)
void setColor(SkColor color)
void setAntiAlias(bool aa)
@ kStroke_Style
set to stroke geometry
void printf(const char format[],...) SK_PRINTF_LIKE(2
DEF_SWITCHES_START aot vmservice shared library name
◆ doDraw()
void PictureNesting::doDraw |
( |
SkCanvas * |
canvas | ) |
|
|
inlineprotected |
Definition at line 33 of file PictureNestingBench.cpp.
33 {
37
40
41 canvas->restore();
42 }
SkDEBUGCODE(SK_SPI) SkThreadID SkGetThreadID()
virtual SkISize onGetSize()
int sierpinsky(SkCanvas *canvas, int lvl, const SkPaint &paint)
void scale(SkScalar sx, SkScalar sy)
constexpr int32_t width() const
constexpr int32_t height() const
◆ onGetName()
const char * PictureNesting::onGetName |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ sierpinsky()
Definition at line 44 of file PictureNestingBench.cpp.
44 {
46 return 0;
47 }
48
49 int pics = 0;
53
54 if (recordPicture) {
56 pics++;
57 }
58
62
65
68
71
75
76 if (recordPicture) {
78 }
79
80 return pics;
81 }
void translate(SkScalar dx, SkScalar dy)
void drawLine(SkScalar x0, SkScalar y0, SkScalar x1, SkScalar y1, const SkPaint &paint)
void drawPicture(const SkPicture *picture)
SkCanvas * beginRecording(const SkRect &bounds, sk_sp< SkBBoxHierarchy > bbh)
sk_sp< SkPicture > finishRecordingAsPicture()
◆ fMaxLevel
int PictureNesting::fMaxLevel |
|
protected |
◆ fMaxPictureLevel
int PictureNesting::fMaxPictureLevel |
|
protected |
The documentation for this class was generated from the following file: