Definition at line 95 of file gradients_no_texture.cpp.
◆ GradientsNoTextureGM()
GradientsNoTextureGM::GradientsNoTextureGM |
( |
bool |
dither | ) |
|
|
inline |
◆ getISize()
SkISize GradientsNoTextureGM::getISize |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ getName()
SkString GradientsNoTextureGM::getName |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
◆ onDraw()
void GradientsNoTextureGM::onDraw |
( |
SkCanvas * |
canvas | ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 108 of file gradients_no_texture.cpp.
108 {
114 paint.setAntiAlias(
true);
115 paint.setDither(fDither);
116
118 constexpr uint8_t kAlphas[] = { 0xff, 0x40 };
119 for (
size_t a = 0;
a < std::size(kAlphas); ++
a) {
120 for (
size_t i = 0; i < std::size(
gGradData); ++i) {
122 for (
size_t j = 0; j < std::size(
gGradMakers); ++j) {
124 paint.setAlpha(kAlphas[
a]);
127 }
130 }
131 }
132 }
void drawRect(const SkRect &rect, const SkPaint &paint)
void translate(SkScalar dx, SkScalar dy)
constexpr GradMaker gGradMakers[]
static constexpr SkPoint kPts[kPtsCount]
constexpr GradData gGradData[]
constexpr float height() const
constexpr float width() const
The documentation for this class was generated from the following file: