Flutter Engine
The Flutter Engine
third_party
skia
modules
skottie
src
Composition.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 SkottieComposition_DEFINED
9
#define SkottieComposition_DEFINED
10
11
#include "
include/core/SkRefCnt.h
"
12
#include "
include/core/SkSize.h
"
13
#include "
include/private/base/SkNoncopyable.h
"
14
#include "
modules/skottie/src/Layer.h
"
15
#include "
src/core/SkTHash.h
"
16
17
#include <cstddef>
18
#include <vector>
19
20
namespace
skjson
{
21
class
ObjectValue;
22
}
23
namespace
sksg
{
24
class
RenderNode;
25
class
Transform
;
26
}
// namespace sksg
27
28
namespace
skottie
{
29
namespace
internal {
30
class
AnimationBuilder;
31
32
class
CompositionBuilder
final :
SkNoncopyable
{
33
public
:
34
CompositionBuilder
(
const
AnimationBuilder
&,
const
SkSize
&,
const
skjson::ObjectValue
&);
35
~CompositionBuilder
();
36
37
sk_sp<sksg::RenderNode>
build
(
const
AnimationBuilder
&);
38
39
LayerBuilder
*
layerBuilder
(
int
layer_index);
40
41
private
:
42
const
sk_sp<sksg::Transform>
& getCameraTransform()
const
{
return
fCameraTransform; }
43
44
friend
class
LayerBuilder
;
45
46
const
SkSize
fSize;
47
48
std::vector<LayerBuilder> fLayerBuilders;
49
skia_private::THashMap<int, size_t>
fLayerIndexMap;
// Maps layer "ind" to layer builder index.
50
51
sk_sp<sksg::Transform>
fCameraTransform;
52
53
size_t
fMotionBlurSamples = 1;
54
float
fMotionBlurAngle = 0,
55
fMotionBlurPhase = 0;
56
};
57
58
}
// namespace internal
59
}
// namespace skottie
60
61
#endif
// SkottieComposition_DEFINED
Layer.h
SkNoncopyable.h
SkRefCnt.h
SkSize.h
SkTHash.h
SkNoncopyable
Definition:
SkNoncopyable.h:18
sk_sp< sksg::RenderNode >
skia_private::THashMap< int, size_t >
skjson::ObjectValue
Definition:
SkJSON.h:337
skottie::internal::AnimationBuilder
Definition:
SkottiePriv.h:66
skottie::internal::CompositionBuilder
Definition:
Composition.h:32
skottie::internal::CompositionBuilder::CompositionBuilder
CompositionBuilder(const AnimationBuilder &, const SkSize &, const skjson::ObjectValue &)
Definition:
Composition.cpp:53
skottie::internal::CompositionBuilder::build
sk_sp< sksg::RenderNode > build(const AnimationBuilder &)
Definition:
Composition.cpp:119
skottie::internal::CompositionBuilder::~CompositionBuilder
~CompositionBuilder()
skottie::internal::CompositionBuilder::layerBuilder
LayerBuilder * layerBuilder(int layer_index)
Definition:
Composition.cpp:107
skottie::internal::LayerBuilder
Definition:
Layer.h:31
skjson
Definition:
Animator.h:17
skottie
Definition:
ExternalLayer.h:16
sksg
Definition:
Skottie.h:32
sktext::gpu::Transform
skgpu::graphite::Transform Transform
Definition:
GraphiteVertexFiller.cpp:52
SkSize
Definition:
SkSize.h:52
Generated on Sun Jun 23 2024 21:56:05 for Flutter Engine by
1.9.4