Change the visibility of skottie::PropertyHandle constructor to public.
This allows for unit-testing of implementations of the Skottie::PropertyObserver API, which are expected to act on the PropertyHandle. Change-Id: If7a7518db1571523de688f2ca3d40862f8a68ada Reviewed-on: https://skia-review.googlesource.com/c/skia/+/229880 Commit-Queue: Avinash Parchuri <aparchur@google.com> Commit-Queue: Florin Malita <fmalita@chromium.org> Reviewed-by: Florin Malita <fmalita@chromium.org>
This commit is contained in:
parent
e2c5e8c7ee
commit
ca2640423d
@ -49,16 +49,13 @@ namespace internal { class AnimationBuilder; }
|
||||
template <typename ValueT, typename NodeT>
|
||||
class SK_API PropertyHandle final {
|
||||
public:
|
||||
explicit PropertyHandle(sk_sp<NodeT> node) : fNode(std::move(node)) {}
|
||||
~PropertyHandle();
|
||||
|
||||
ValueT get() const;
|
||||
void set(const ValueT&);
|
||||
|
||||
private:
|
||||
explicit PropertyHandle(sk_sp<NodeT> node) : fNode(std::move(node)) {}
|
||||
|
||||
friend class skottie::internal::AnimationBuilder;
|
||||
|
||||
const sk_sp<NodeT> fNode;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user