a6e30f75fc
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>
33 lines
590 B
C++
33 lines
590 B
C++
/*
|
|
* 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
|