Definition at line 164 of file RectBench.cpp.
◆ LocalCoordsRectBench()
LocalCoordsRectBench::LocalCoordsRectBench |
( |
bool |
aa, |
|
|
bool |
perspective = false |
|
) |
| |
|
inline |
Definition at line 166 of file RectBench.cpp.
166: INHERITED(1, 0, aa, perspective) { }
◆ onDelayedSetup()
void LocalCoordsRectBench::onDelayedSetup |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from RectBench.
Definition at line 169 of file RectBench.cpp.
169 {
171
172 SkPoint pts[2] = { {0.f, 0.f}, {50.f, 50.f} };
175 }
constexpr SkColor SK_ColorBLUE
constexpr SkColor SK_ColorWHITE
void onDelayedSetup() override
static sk_sp< SkShader > MakeLinear(const SkPoint pts[2], const SkColor colors[], const SkScalar pos[], int count, SkTileMode mode, uint32_t flags=0, const SkMatrix *localMatrix=nullptr)
PODArray< SkColor > colors
◆ onGetName()
const char * LocalCoordsRectBench::onGetName |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from RectBench.
Definition at line 182 of file RectBench.cpp.
182 {
184 fName.
append(
"_localcoords");
185 return fName.
c_str();
186 }
const char * onGetName() override
void set(const SkString &src)
void append(const char text[])
const char * c_str() const
◆ setupPaint()
void LocalCoordsRectBench::setupPaint |
( |
SkPaint * |
paint | ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from RectBench.
Definition at line 177 of file RectBench.cpp.
177 {
179 paint->setShader(fShader);
180 }
void setupPaint(SkPaint *paint) override
The documentation for this class was generated from the following file: