Debian Codegraph @

modules/skottie/src/layers/NullLayer.cpp

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