Definition at line 28 of file tiledscaledbitmap.cpp.
◆ TiledScaledBitmapGM()
skiagm::TiledScaledBitmapGM::TiledScaledBitmapGM |
( |
| ) |
|
|
inline |
◆ getISize()
SkISize skiagm::TiledScaledBitmapGM::getISize |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ getName()
SkString skiagm::TiledScaledBitmapGM::getName |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
◆ make_bm()
static SkBitmap skiagm::TiledScaledBitmapGM::make_bm |
( |
int |
width, |
|
|
int |
height |
|
) |
| |
|
inlinestaticprotected |
Definition at line 39 of file tiledscaledbitmap.cpp.
39 {
45 paint.setAntiAlias(
true);
47 return bm;
48 }
constexpr SkColor SK_ColorTRANSPARENT
void allocN32Pixels(int width, int height, bool isOpaque=false)
void eraseColor(SkColor4f) const
◆ onDraw()
void skiagm::TiledScaledBitmapGM::onDraw |
( |
SkCanvas * |
canvas | ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 54 of file tiledscaledbitmap.cpp.
54 {
56
57 paint.setAntiAlias(
true);
58
60 mat.
setScale(121.f/360.f, 93.f/288.f);
62
66 }
sk_sp< SkShader > makeShader(SkTileMode tmx, SkTileMode tmy, const SkSamplingOptions &, const SkMatrix *localMatrix=nullptr) const
void drawRect(const SkRect &rect, const SkPaint &paint)
SkMatrix & postTranslate(SkScalar dx, SkScalar dy)
SkMatrix & setScale(SkScalar sx, SkScalar sy, SkScalar px, SkScalar py)
static constexpr SkCubicResampler Mitchell()
◆ onOnceBeforeDraw()
void skiagm::TiledScaledBitmapGM::onOnceBeforeDraw |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
The documentation for this class was generated from the following file: