3 writes to _syncData
PresentationCore (3)
System\Windows\Media\Animation\Clock.cs (1)
616_syncData = new SyncData(this); // CanSlip clocks keep themselves synced
System\Windows\Media\Animation\ClockGroup.cs (2)
141_syncData = new SyncData(child); 142child._syncData = null; // The child will no longer self-sync
68 references to _syncData
PresentationCore (68)
System\Windows\Media\Animation\Clock.cs (61)
1174if (_syncData != null) 1176_syncData.IsInSyncPeriod = false; // Reset sync tracking 1830(_syncData == null || !_syncData.IsInSyncPeriod)) 2666if (_syncData != null && _syncData.IsInSyncPeriod && !_syncData.SyncClockHasReachedEffectiveDuration) 2858if (_syncData != null) 2860_syncData.SyncClockDiscontinuousEvent = true; // Notify the syncing node of discontinuity 2902if (_syncData != null && _syncData.IsInSyncPeriod && _parent.CurrentState != ClockState.Stopped) // We are already in a slip zone 2928if (_syncData != null && !_syncData.IsInSyncPeriod && _parent.CurrentState != ClockState.Stopped && 3165Debug.Assert(_syncData.SyncClock == this || _syncData.SyncClock._parent == this); 3168Debug.Assert(_syncData != null); 3169Debug.Assert(!_syncData.IsInSyncPeriod); 3184if (_syncData.SyncClock == this || previewCurrentTimeLT >= _syncData.SyncClockBeginTime) 3197TimeSpan ourSyncTimeST = (_syncData.SyncClock == this) ? 3199MultiplyTimeSpan(previewCurrentTimeLT - _syncData.SyncClockBeginTime, 3200_syncData.SyncClockSpeedRatio); 3202TimeSpan? syncClockEffectiveDurationST = _syncData.SyncClockEffectiveDuration; 3203if (_syncData.SyncClock == this || 3207Duration syncClockDuration = _syncData.SyncClockResolvedDuration; 3211_syncData.PreviousSyncClockTime = TimeSpan.FromTicks(ourSyncTimeST.Ticks % syncClockDuration.TimeSpan.Ticks); 3212_syncData.PreviousRepeatTime = ourSyncTimeST - _syncData.PreviousSyncClockTime; 3216_syncData.PreviousSyncClockTime = ourSyncTimeST; 3217_syncData.PreviousRepeatTime = TimeSpan.Zero; 3228_syncData.IsInSyncPeriod = true; 3234TimeSpan? previousSyncParentTimeSPT = (_syncData.SyncClock == this) ? 3239|| _syncData.SyncClockDiscontinuousEvent 3240|| previousSyncParentTimeSPT.Value <= _syncData.SyncClockBeginTime) 3248if (_syncData.SyncClock != this) // SyncClock is our child; account for SyncClock starting later than us 3250timeIntoSyncPeriodPT -= DivideTimeSpan(_syncData.SyncClockBeginTime, _appliedSpeedRatio); 3268_syncData.IsInSyncPeriod = true; 3269_syncData.PreviousSyncClockTime = TimeSpan.Zero; 3270_syncData.PreviousRepeatTime = TimeSpan.Zero; 3271_syncData.SyncClockDiscontinuousEvent = false; 3291Debug.Assert(_syncData != null); 3292Debug.Assert(_syncData.IsInSyncPeriod); 3295Debug.Assert(_syncData.SyncClock == this || _syncData.SyncClock._parent == this); 3314TimeSpan syncTimeST = _syncData.SyncClock.GetCurrentTimeCore(); 3315TimeSpan syncElapsedTimeST = syncTimeST - _syncData.PreviousSyncClockTime; // Elapsed from last tick 3321TimeSpan? effectiveDurationST = _syncData.SyncClockEffectiveDuration; 3322Duration syncDuration = _syncData.SyncClockResolvedDuration; 3325(_syncData.PreviousRepeatTime + syncTimeST >= effectiveDurationST.Value)) 3327_syncData.IsInSyncPeriod = false; // This is the last time we need to sync 3328_syncData.PreviousRepeatTime = TimeSpan.Zero; 3329_syncData.SyncClockDiscontinuousEvent = false; // Make sure we don't reenter the sync period 3340_syncData.PreviousSyncClockTime = TimeSpan.Zero; 3341_syncData.PreviousRepeatTime += syncDuration.TimeSpan; 3345_syncData.PreviousSyncClockTime = syncTimeST; 3354TimeSpan syncElapsedTimeLT = (_syncData.SyncClock == this) 3356: DivideTimeSpan(syncElapsedTimeST, _syncData.SyncClockSpeedRatio); 3394if (current._syncData != null) 3396current._syncData.IsInSyncPeriod = false; 3397current._syncData.SyncClockDiscontinuousEvent = true; 3827_syncData?.UpdateClockBeginTime();
System\Windows\Media\Animation\ClockGroup.cs (7)
345bool bufferingSlipNode = (_syncData != null // This variable makes sure that our slip node completes as needed 346&& _syncData.IsInSyncPeriod 347&& !_syncData.SyncClockHasReachedEffectiveDuration); 368if (bufferingSlipNode && _syncData.SyncClock == this) 439if (child._syncData != null) 442child._syncData.IsInSyncPeriod = false; 443child._syncData.UpdateClockBeginTime(); // Apply effects of realigning