Definition at line 22 of file ChecksumBench.cpp.
◆ ComputeChecksumBench()
ComputeChecksumBench::ComputeChecksumBench |
( |
ChecksumType |
type, |
|
|
size_t |
blockSize |
|
) |
| |
|
inline |
Definition at line 33 of file ChecksumBench.cpp.
35
39 }
41 }
static constexpr size_t kBufferSize
void void void appendf(const char format[],...) SK_PRINTF_LIKE(2
◆ isSuitableFor()
bool ComputeChecksumBench::isSuitableFor |
( |
Backend |
backend | ) |
|
|
inlineoverridevirtual |
◆ onDraw()
void ComputeChecksumBench::onDraw |
( |
int |
loops, |
|
|
SkCanvas * |
|
|
) |
| |
|
inlineoverridevirtual |
Implements Benchmark.
Definition at line 59 of file ChecksumBench.cpp.
59 {
60 volatile uint32_t
result = 0;
63 for (
int i = 0;
i < loops;
i++) {
64 for (
const uint8_t* buf =
fData.get(); buf < bufEnd; buf +=
fBlockSize) {
70 break;
71 }
74 break;
75 }
76 }
77 }
79 }
static SkMD5::Digest md5(const SkBitmap &bm)
void sk_ignore_unused_variable(const T &)
std::unique_ptr< uint8_t[]> fData
uint32_t Hash32(const void *data, size_t bytes, uint32_t seed)
◆ onGetName()
const char * ComputeChecksumBench::onGetName |
( |
| ) |
|
|
inlineoverridevirtual |
◆ onPostDraw()
void ComputeChecksumBench::onPostDraw |
( |
SkCanvas * |
| ) |
|
|
inlineoverridevirtual |
◆ onPreDraw()
void ComputeChecksumBench::onPreDraw |
( |
SkCanvas * |
| ) |
|
|
inlineoverridevirtual |
◆ fBlockSize
size_t ComputeChecksumBench::fBlockSize |
◆ fData
std::unique_ptr<uint8_t[]> ComputeChecksumBench::fData |
◆ fName
◆ fType
◆ kBufferSize
constexpr size_t ComputeChecksumBench::kBufferSize = 64 * 1024 |
|
staticconstexpr |
The documentation for this class was generated from the following file: