diff options
author | Florin Malita <fmalita@chromium.org> | 2018-03-23 13:41:58 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-03-23 18:09:50 +0000 |
commit | a6e30f75fcd70636b835c8fb24005b84a1dd0d25 (patch) | |
tree | cc85258441e5d11f39591679c790f35f7ad30349 /experimental/skottie/SkottieValue.h | |
parent | 99501b741c1164fa12581cd06f0e7ab3fbce8792 (diff) |
[skottie] Clean up SkottieProperties
Split into Adapter and Value CUs.
No real changes, just shuffling things around.
TBR=
Change-Id: I50eaeb3950f4c59e7d7027955b3f49ca2a346e59
Reviewed-on: https://skia-review.googlesource.com/116186
Reviewed-by: Florin Malita <fmalita@chromium.org>
Commit-Queue: Florin Malita <fmalita@chromium.org>
Diffstat (limited to 'experimental/skottie/SkottieValue.h')
-rw-r--r-- | experimental/skottie/SkottieValue.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/experimental/skottie/SkottieValue.h b/experimental/skottie/SkottieValue.h new file mode 100644 index 0000000000..6d6d94a7a3 --- /dev/null +++ b/experimental/skottie/SkottieValue.h @@ -0,0 +1,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 |