chromium/third_party/skia/modules/skottie/src/Transform.cpp

/*
 * Copyright 2020 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#include "modules/skottie/src/Transform.h"

#include "include/core/SkRefCnt.h"
#include "include/core/SkScalar.h"
#include "include/private/base/SkAssert.h"
#include "include/private/base/SkTPin.h"
#include "modules/skottie/src/SkottiePriv.h"
#include "modules/sksg/include/SkSGTransform.h"
#include "src/utils/SkJSON.h"

#include <cmath>

namespace skottie {
namespace internal {

TransformAdapter2D::TransformAdapter2D(const AnimationBuilder& abuilder,
                                       const skjson::ObjectValue* janchor_point,
                                       const skjson::ObjectValue* jposition,
                                       const skjson::ObjectValue* jscale,
                                       const skjson::ObjectValue* jrotation,
                                       const skjson::ObjectValue* jskew,
                                       const skjson::ObjectValue* jskew_axis,
                                       bool auto_orient)
    :{}

TransformAdapter2D::~TransformAdapter2D() {}

void TransformAdapter2D::onSync() {}

SkMatrix TransformAdapter2D::totalMatrix() const {}

SkPoint TransformAdapter2D::getAnchorPoint() const {}

void TransformAdapter2D::setAnchorPoint(const SkPoint& ap) {}

SkPoint TransformAdapter2D::getPosition() const {}

void TransformAdapter2D::setPosition(const SkPoint& p) {}

SkVector TransformAdapter2D::getScale() const {}

void TransformAdapter2D::setScale(const SkVector& s) {}

void TransformAdapter2D::setRotation(float r) {}

void TransformAdapter2D::setSkew(float sk) {}

void TransformAdapter2D::setSkewAxis(float sa) {}

sk_sp<sksg::Transform> AnimationBuilder::attachMatrix2D(const skjson::ObjectValue& jtransform,
                                                        sk_sp<sksg::Transform> parent,
                                                        bool auto_orient) const {}

TransformAdapter3D::TransformAdapter3D(const skjson::ObjectValue& jtransform,
                                       const AnimationBuilder& abuilder)
    :{}

TransformAdapter3D::~TransformAdapter3D() = default;

void TransformAdapter3D::onSync() {}

SkV3 TransformAdapter3D::anchor_point() const {}

SkV3 TransformAdapter3D::position() const {}

SkV3 TransformAdapter3D::rotation() const {}

SkM44 TransformAdapter3D::totalMatrix() const {}

sk_sp<sksg::Transform> AnimationBuilder::attachMatrix3D(const skjson::ObjectValue& jtransform,
                                                        sk_sp<sksg::Transform> parent,
                                                        bool /*TODO: auto_orient*/) const {}

} // namespace internal
} // namespace skottie