Definition at line 22 of file EncodeBench.cpp.
◆ Encoder
◆ EncodeBench()
EncodeBench::EncodeBench |
( |
const char * |
filename, |
|
|
Encoder |
encoder, |
|
|
const char * |
encoderName |
|
) |
| |
|
inline |
Definition at line 25 of file EncodeBench.cpp.
26 : fSourceFilename(filename)
SK_API SkString SkStringPrintf(const char *format,...) SK_PRINTF_LIKE(1
Creates a new string and writes into it using a printf()-style format.
◆ isSuitableFor()
bool EncodeBench::isSuitableFor |
( |
Backend |
backend | ) |
|
|
inlineoverridevirtual |
◆ onDelayedSetup()
void EncodeBench::onDelayedSetup |
( |
| ) |
|
|
inlineoverridevirtual |
Reimplemented from Benchmark.
Definition at line 34 of file EncodeBench.cpp.
34 {
36 }
SkAssertResult(font.textToGlyphs("Hello", 5, SkTextEncoding::kUTF8, glyphs, std::size(glyphs))==count)
◆ onDraw()
Implements Benchmark.
Definition at line 38 of file EncodeBench.cpp.
38 {
39 while (loops-- > 0) {
45 }
46 }
bool peekPixels(SkPixmap *pixmap) const
◆ onGetName()
const char * EncodeBench::onGetName |
( |
| ) |
|
|
inlineoverridevirtual |
The documentation for this class was generated from the following file: