Definition at line 27 of file jpg_color_cube.cpp.
◆ ColorCubeGM()
skiagm::ColorCubeGM::ColorCubeGM |
( |
| ) |
|
|
inline |
◆ getISize()
SkISize skiagm::ColorCubeGM::getISize |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ getName()
SkString skiagm::ColorCubeGM::getName |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
◆ onDraw()
void skiagm::ColorCubeGM::onDraw |
( |
SkCanvas * |
canvas | ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 60 of file jpg_color_cube.cpp.
60 {
62 }
void drawImage(const SkImage *image, SkScalar left, SkScalar top)
◆ onOnceBeforeDraw()
void skiagm::ColorCubeGM::onOnceBeforeDraw |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 36 of file jpg_color_cube.cpp.
36 {
39 int bX = 0, bY = 0;
40 for (
int b = 0;
b < 64; ++
b) {
41 for (int r = 0; r < 64; ++r) {
42 for (int g = 0; g < 64; ++g) {
47 }
48 }
49 bX += 64;
50 if (bX >= 512) {
51 bX = 0;
52 bY += 64;
53 }
54 }
58 }
#define SkASSERT_RELEASE(cond)
static SkPMColor SkPackARGB32(U8CPU a, U8CPU r, U8CPU g, U8CPU b)
static constexpr const T & SkTPin(const T &x, const T &lo, const T &hi)
const SkPixmap & pixmap() const
void allocN32Pixels(int width, int height, bool isOpaque=false)
uint32_t * getAddr32(int x, int y) const
SK_API sk_sp< SkImage > DeferredFromEncodedData(sk_sp< SkData > encoded, std::optional< SkAlphaType > alphaType=std::nullopt)
SK_API bool Encode(SkWStream *dst, const SkPixmap &src, const Options &options)
The documentation for this class was generated from the following file: