Definition at line 21 of file blurcircles.cpp.
◆ BlurCirclesGM()
BlurCirclesGM::BlurCirclesGM |
( |
| ) |
|
|
inline |
◆ getISize()
SkISize BlurCirclesGM::getISize |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ getName()
SkString BlurCirclesGM::getName |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
◆ onDraw()
void BlurCirclesGM::onDraw |
( |
SkCanvas * |
canvas | ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 42 of file blurcircles.cpp.
42 {
43 canvas->
scale(1.5f, 1.5f);
45
46 const float circleRadii[] = {5.f, 10.f, 25.f, 50.f};
47
48 for (
size_t i = 0;
i < kNumBlurs; ++
i) {
51 for (
size_t j = 0; j <
std::size(circleRadii); ++j) {
54 paint.setMaskFilter(fBlurFilters[
i]);
55
57
63 }
64 }
65 }
constexpr SkColor SK_ColorBLACK
void translate(SkScalar dx, SkScalar dy)
void rotate(SkScalar degrees)
void scale(SkScalar sx, SkScalar sy)
void drawCircle(SkScalar cx, SkScalar cy, SkScalar radius, const SkPaint &paint)
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
◆ onOnceBeforeDraw()
void BlurCirclesGM::onOnceBeforeDraw |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 32 of file blurcircles.cpp.
32 {
33 const float blurRadii[kNumBlurs] = {1.f, 5.f, 10.f, 20.f};
34
35 for (
int i = 0;
i < kNumBlurs; ++
i) {
39 }
40 }
@ kNormal_SkBlurStyle
fuzzy inside and outside
static SkScalar SK_SPI ConvertRadiusToSigma(SkScalar radius)
static sk_sp< SkMaskFilter > MakeBlur(SkBlurStyle style, SkScalar sigma, bool respectCTM=true)
◆ runAsBench()
bool BlurCirclesGM::runAsBench |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
The documentation for this class was generated from the following file: