aboutsummaryrefslogtreecommitdiffhomepage
path: root/experimental/skottie/SkottieValue.h
blob: 6d6d94a7a31a7710ad173f505d59df6c2bb536fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
 * Copyright 2017 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#ifndef SkottieValue_DEFINED
#define SkottieValue_DEFINED

#include "SkPath.h"
#include "SkScalar.h"

#include <vector>

namespace  skottie {

template <typename T>
struct ValueTraits {
    static size_t Cardinality(const T&);

    template <typename U>
    static U As(const T&);
};

using ScalarValue = SkScalar;
using VectorValue = std::vector<ScalarValue>;
using ShapeValue  = SkPath;

} // namespace skottie

#endif // SkottieValue_DEFINED