◆ PremulAndUnpremulAlphaOpsBench()
PremulAndUnpremulAlphaOpsBench::PremulAndUnpremulAlphaOpsBench |
( |
SkColorType |
ct | ) |
|
|
inline |
◆ onDelayedSetup()
void PremulAndUnpremulAlphaOpsBench::onDelayedSetup |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from Benchmark.
Definition at line 32 of file PremulAndUnpremulAlphaOpsBench.cpp.
32 {
35
36 for (
int h = 0;
h <
H; ++
h) {
37 for (
int w = 0;
w < W; ++
w) {
38
40 }
41 }
42
44 }
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
static constexpr SkColor SkColorSetARGB(U8CPU a, U8CPU r, U8CPU g, U8CPU b)
void allocPixels(const SkImageInfo &info, size_t rowBytes)
uint32_t * getAddr32(int x, int y) const
static SkImageInfo Make(int width, int height, SkColorType ct, SkAlphaType at)
◆ onDraw()
void PremulAndUnpremulAlphaOpsBench::onDraw |
( |
int |
loops, |
|
|
SkCanvas * |
canvas |
|
) |
| |
|
inlineoverrideprotectedvirtual |
Implements Benchmark.
Definition at line 46 of file PremulAndUnpremulAlphaOpsBench.cpp.
46 {
48
49 for (int loop = 0; loop < loops; ++loop) {
50
52
54 }
55 }
constexpr SkColor SK_ColorBLACK
const SkImageInfo & info() const
bool writePixels(const SkImageInfo &info, const void *pixels, size_t rowBytes, int x, int y)
void clear(SkColor color)
bool readPixels(const SkImageInfo &dstInfo, void *dstPixels, size_t dstRowBytes, int srcX, int srcY)
◆ onGetName()
const char * PremulAndUnpremulAlphaOpsBench::onGetName |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
The documentation for this class was generated from the following file: