/src/skia/modules/skottie/src/layers/NullLayer.cpp
Line | Count | Source |
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 | | #include "modules/skottie/src/SkottiePriv.h" |
9 | | |
10 | | #include "modules/sksg/include/SkSGRenderNode.h" |
11 | | |
12 | | namespace skottie { |
13 | | namespace internal { |
14 | | |
15 | | sk_sp<sksg::RenderNode> AnimationBuilder::attachNullLayer(const skjson::ObjectValue& layer, |
16 | 1.98k | LayerInfo*) const { |
17 | | // Null layers are used solely to drive dependent transforms, |
18 | | // but we use free-floating sksg::Matrices for that purpose. |
19 | 1.98k | return nullptr; |
20 | 1.98k | } |
21 | | |
22 | | } // namespace internal |
23 | | } // namespace skottie |