Revert "Allow tracking of Precompositions onEnter/onExit"

This reverts commit 510e0c57da.

Reason for revert: probably blocking g3 roll

Original change's description:
> Allow tracking of Precompositions onEnter/onExit
>
> Change-Id: I065288b212d8ffc4d0ca127940e524799f59aff7
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/454976
> Reviewed-by: Avinash Parchuri <aparchur@google.com>
> Reviewed-by: Florin Malita <fmalita@google.com>
> Commit-Queue: Avinash Parchuri <aparchur@google.com>

Change-Id: I2e5b12bd45d48fc98ee799a733740e4cd8ae3dcb
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/456921
Auto-Submit: Michael Ludwig <michaelludwig@google.com>
Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
This commit is contained in:
Michael Ludwig 2021-10-07 13:53:35 +00:00 committed by SkCQ
parent 042a197ce2
commit 8724136129
2 changed files with 1 additions and 2 deletions

View File

@ -49,8 +49,6 @@ CompositionBuilder::CompositionBuilder(const AnimationBuilder& abuilder,
const skjson::ObjectValue& jcomp)
: fSize(size) {
AnimationBuilder::AutoPropertyTracker apt(&abuilder, jcomp,
PropertyObserver::NodeType::COMPOSITION);
// Optional motion blur params.
if (const skjson::ObjectValue* jmb = jcomp["mb"]) {
static constexpr size_t kMaxSamplesPerFrame = 64;

View File

@ -186,6 +186,7 @@ AnimationBuilder::AnimationInfo AnimationBuilder::parse(const skjson::ObjectValu
this->parseFonts(jroot["fonts"], jroot["chars"]);
AutoScope ascope(this);
AutoPropertyTracker apt(this, jroot, PropertyObserver::NodeType::COMPOSITION);
auto root = CompositionBuilder(*this, fCompSize, jroot).build(*this);
auto animators = ascope.release();