aboutsummaryrefslogtreecommitdiffhomepage
path: root/experimental/skottie/SkottieAnimator.cpp
diff options
context:
space:
mode:
authorGravatar Florin Malita <fmalita@chromium.org>2018-05-09 11:35:00 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-05-09 16:11:45 +0000
commit20880784fb7301d497225e7e7e4a3cd1452b8aae (patch)
tree7209183f364275169656cc76e23bcd30d4b0d6de /experimental/skottie/SkottieAnimator.cpp
parentdea965c0995ff8edfd1ecfb5e616c2028f7d1e69 (diff)
[skottie] Json cleanup pass
Assorted Json tweaks: - more defensive internal object access - drop unneeded isObject checks - drop unneeded namespace - restrict the iterator to arrays TBR= Change-Id: I02f1c5d84c429cf5206bc2a0a7843097b92bac94 Reviewed-on: https://skia-review.googlesource.com/126930 Reviewed-by: Florin Malita <fmalita@chromium.org> Commit-Queue: Florin Malita <fmalita@chromium.org>
Diffstat (limited to 'experimental/skottie/SkottieAnimator.cpp')
-rw-r--r--experimental/skottie/SkottieAnimator.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/experimental/skottie/SkottieAnimator.cpp b/experimental/skottie/SkottieAnimator.cpp
index d8cc6e7769..4554409761 100644
--- a/experimental/skottie/SkottieAnimator.cpp
+++ b/experimental/skottie/SkottieAnimator.cpp
@@ -74,9 +74,6 @@ protected:
return;
for (const json::ValueRef jframe : jframes) {
- if (!jframe.isObject())
- continue;
-
float t0;
if (!jframe["t"].to(&t0))
continue;