Definition at line 32 of file animatedimageblurs.cpp.
◆ AnimatedImageBlurs()
AnimatedImageBlurs::AnimatedImageBlurs |
( |
| ) |
|
|
inline |
◆ getISize()
SkISize AnimatedImageBlurs::getISize |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ getName()
SkString AnimatedImageBlurs::getName |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
◆ onAnimate()
bool AnimatedImageBlurs::onAnimate |
( |
double |
nanos | ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 72 of file animatedimageblurs.cpp.
72 {
73 if (0.0f != fLastTime) {
75 fNodes[
i].update(nanos, fLastTime);
76 }
77 }
78
79 fLastTime = 1
e-9 * nanos;
80 return true;
81 }
static const int kNumNodes
◆ onDraw()
void AnimatedImageBlurs::onDraw |
( |
SkCanvas * |
canvas | ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 51 of file animatedimageblurs.cpp.
51 {
53 paint.setAntiAlias(
true);
54
58 nullptr));
59
61
63 fNodes[
i].
pos().fY - fNodes[
i].
size()-0.5f,
64 fNodes[
i].
pos().fX + fNodes[
i].
size()+0.5f,
65 fNodes[
i].
pos().fY + fNodes[
i].
size()+0.5f);
69 }
70 }
int saveLayer(const SkRect *bounds, const SkPaint *paint)
void drawRRect(const SkRRect &rrect, const SkPaint &paint)
static sk_sp< SkImageFilter > Blur(SkScalar sigmaX, SkScalar sigmaY, SkTileMode tileMode, sk_sp< SkImageFilter > input, const CropRect &cropRect={})
void setImageFilter(sk_sp< SkImageFilter > imageFilter)
static SkRRect MakeRectXY(const SkRect &rect, SkScalar xRad, SkScalar yRad)
sk_sp< SkBlender > blender SkRect rect
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
static constexpr SkRect MakeLTRB(float l, float t, float r, float b)
◆ onOnceBeforeDraw()
void AnimatedImageBlurs::onOnceBeforeDraw |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ runAsBench()
bool AnimatedImageBlurs::runAsBench |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
The documentation for this class was generated from the following file: