Definition at line 94 of file pictureshadertile.cpp.
◆ getISize()
SkISize PictureShaderTileGM::getISize |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ getName()
SkString PictureShaderTileGM::getName |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
◆ onDraw()
void PictureShaderTileGM::onDraw |
( |
SkCanvas * |
canvas | ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 138 of file pictureshadertile.cpp.
138 {
140
143
144 for (unsigned i = 0; i < std::size(fShaders); ++i) {
145 paint.setShader(fShaders[i]);
146
152 }
153 }
constexpr SkColor SK_ColorBLACK
void drawRect(const SkRect &rect, const SkPaint &paint)
void translate(SkScalar dx, SkScalar dy)
void clear(SkColor color)
@ kFill_Style
set to fill geometry
constexpr SkScalar kFillSize
constexpr unsigned kRowSize
static constexpr SkRect MakeWH(float w, float h)
◆ onOnceBeforeDraw()
void PictureShaderTileGM::onOnceBeforeDraw |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 100 of file pictureshadertile.cpp.
100 {
105
112
113 for (
unsigned i = 0; i < std::size(
tiles); ++i) {
123
126
128
129 pictureRef = offsetPicture;
130 tilePtr = nullptr;
131 }
132
135 }
136 }
SkMatrix & postScale(SkScalar sx, SkScalar sy, SkScalar px, SkScalar py)
SkMatrix & setTranslate(SkScalar dx, SkScalar dy)
SkCanvas * beginRecording(const SkRect &bounds, sk_sp< SkBBoxHierarchy > bbh)
sk_sp< SkPicture > finishRecordingAsPicture()
sk_sp< const SkPicture > picture
constexpr SkScalar kPictureSize
static void draw_scene(SkCanvas *canvas, SkScalar pictureSize)
constexpr struct @268 tiles[]
static constexpr SkPoint Make(float x, float y)
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)
The documentation for this class was generated from the following file: