Flutter Engine
The Flutter Engine
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Properties
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Related Functions
:
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
z
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
v
w
y
Enumerator
b
c
d
e
f
g
h
k
l
m
n
p
r
s
t
u
v
w
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
third_party
skia
modules
skottie
src
effects
MotionBlurEffect.h
Go to the documentation of this file.
1
/*
2
* Copyright 2019 Google Inc.
3
*
4
* Use of this source code is governed by a BSD-style license that can be
5
* found in the LICENSE file.
6
*/
7
8
#ifndef SkottieMotionBlurEffect_DEFINED
9
#define SkottieMotionBlurEffect_DEFINED
10
11
#include "
modules/sksg/include/SkSGRenderNode.h
"
12
13
namespace
skottie
{
14
namespace
internal {
15
16
class
Animator;
17
18
class
MotionBlurEffect
final :
public
sksg::CustomRenderNode
{
19
public
:
20
static
sk_sp<MotionBlurEffect>
Make
(
sk_sp<Animator>
animator,
21
sk_sp<sksg::RenderNode>
child,
22
size_t
samples_per_frame,
23
float
shutter_angle,
float
shutter_phase);
24
25
SG_ATTRIBUTE
(
T
,
float
, fT)
26
27
private
:
28
class
AutoInvalBlocker
;
29
30
const
RenderNode
* onNodeAt(
const
SkPoint
&)
const override
;
31
32
SkRect
onRevalidate(
sksg::InvalidationController
* ic,
const
SkMatrix
& ctm)
override
;
33
34
void
onRender(
SkCanvas
* canvas,
const
RenderContext
* ctx)
const override
;
35
36
void
renderToRaster8888Pow2Samples(
SkCanvas
* canvas,
const
RenderContext
* ctx)
const
;
37
38
SkRect
seekToSample(
size_t
sample_idx,
const
SkMatrix
& ctm)
const
;
39
40
MotionBlurEffect
(
sk_sp<Animator>
animator,
41
sk_sp<sksg::RenderNode>
child,
42
size_t
sample_count,
float
phase,
float
dt);
43
44
const
sk_sp<Animator>
fAnimator;
45
const
size_t
fSampleCount;
46
const
float
fPhase
,
47
fDT;
48
49
float
fT = 0;
50
size_t
fVisibleSampleCount = 0;
51
52
using
INHERITED
=
sksg::CustomRenderNode
;
53
};
54
55
}
// namespace internal
56
}
// namespace skottie
57
58
#endif
// SkottieMotionBlurEffect_DEFINED
fPhase
SkScalar fPhase
Definition:
DashOp.cpp:189
SG_ATTRIBUTE
#define SG_ATTRIBUTE(attr_name, attr_type, attr_container)
Definition:
SkSGNode.h:100
SkSGRenderNode.h
SkCanvas
Definition:
SkCanvas.h:106
SkMatrix
Definition:
SkMatrix.h:54
sk_sp
Definition:
SkRefCnt.h:220
skottie::internal::MotionBlurEffect::AutoInvalBlocker
Definition:
MotionBlurEffect.cpp:20
skottie::internal::MotionBlurEffect
Definition:
MotionBlurEffect.h:18
skottie::internal::MotionBlurEffect::Make
static sk_sp< MotionBlurEffect > Make(sk_sp< Animator > animator, sk_sp< sksg::RenderNode > child, size_t samples_per_frame, float shutter_angle, float shutter_phase)
Definition:
MotionBlurEffect.cpp:37
sksg::CustomRenderNode
Definition:
SkSGRenderNode.h:140
sksg::InvalidationController
Definition:
SkSGInvalidationController.h:24
sksg::Node::RenderNode
friend class RenderNode
Definition:
SkSGNode.h:94
skottie
Definition:
ExternalLayer.h:16
T
#define T
Definition:
precompiler.cc:65
SkPoint
Definition:
SkPoint_impl.h:163
SkRect
Definition:
extension.cpp:13
sksg::RenderNode::RenderContext
Definition:
SkSGRenderNode.h:60
Generated on Sun Jun 23 2024 21:56:05 for Flutter Engine by
1.9.4