From a7e78ee1d461b91132f01d6b8b0b16bc31063a04 Mon Sep 17 00:00:00 2001 From: Florin Malita Date: Tue, 10 Jul 2018 11:13:06 -0400 Subject: [skottie] Misc cleanup * pass inline defaults * log expressions TBR= Change-Id: I5e3ab038d612c738abb1bcf35b4cc492b9aaa6c1 Reviewed-on: https://skia-review.googlesource.com/140240 Reviewed-by: Florin Malita Commit-Queue: Florin Malita --- modules/skottie/src/SkottieAnimator.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules/skottie/src/SkottieAnimator.cpp') diff --git a/modules/skottie/src/SkottieAnimator.cpp b/modules/skottie/src/SkottieAnimator.cpp index b2ec87254b..7ce1b7f6ba 100644 --- a/modules/skottie/src/SkottieAnimator.cpp +++ b/modules/skottie/src/SkottieAnimator.cpp @@ -245,6 +245,10 @@ static inline bool BindPropertyImpl(const skjson::ObjectValue* jprop, const auto& jpropA = (*jprop)["a"]; const auto& jpropK = (*jprop)["k"]; + if (!(*jprop)["x"].is()) { + LOG("?? Unsupported expression.\n"); + } + // Older Json versions don't have an "a" animation marker. // For those, we attempt to parse both ways. if (!ParseDefault(jpropA, false)) { -- cgit v1.2.3