3 writes to _syncData
PresentationCore (3)
System\Windows\Media\Animation\Clock.cs (1)
617_syncData = new SyncData(this); // CanSlip clocks keep themselves synced
System\Windows\Media\Animation\ClockGroup.cs (2)
142_syncData = new SyncData(child); 143child._syncData = null; // The child will no longer self-sync
68 references to _syncData
PresentationCore (68)
System\Windows\Media\Animation\Clock.cs (61)
1175if (_syncData != null) 1177_syncData.IsInSyncPeriod = false; // Reset sync tracking 1831(_syncData == null || !_syncData.IsInSyncPeriod)) 2667if (_syncData != null && _syncData.IsInSyncPeriod && !_syncData.SyncClockHasReachedEffectiveDuration) 2859if (_syncData != null) 2861_syncData.SyncClockDiscontinuousEvent = true; // Notify the syncing node of discontinuity 2903if (_syncData != null && _syncData.IsInSyncPeriod && _parent.CurrentState != ClockState.Stopped) // We are already in a slip zone 2929if (_syncData != null && !_syncData.IsInSyncPeriod && _parent.CurrentState != ClockState.Stopped && 3166Debug.Assert(_syncData.SyncClock == this || _syncData.SyncClock._parent == this); 3169Debug.Assert(_syncData != null); 3170Debug.Assert(!_syncData.IsInSyncPeriod); 3185if (_syncData.SyncClock == this || previewCurrentTimeLT >= _syncData.SyncClockBeginTime) 3198TimeSpan ourSyncTimeST = (_syncData.SyncClock == this) ? 3200MultiplyTimeSpan(previewCurrentTimeLT - _syncData.SyncClockBeginTime, 3201_syncData.SyncClockSpeedRatio); 3203TimeSpan? syncClockEffectiveDurationST = _syncData.SyncClockEffectiveDuration; 3204if (_syncData.SyncClock == this || 3208Duration syncClockDuration = _syncData.SyncClockResolvedDuration; 3212_syncData.PreviousSyncClockTime = TimeSpan.FromTicks(ourSyncTimeST.Ticks % syncClockDuration.TimeSpan.Ticks); 3213_syncData.PreviousRepeatTime = ourSyncTimeST - _syncData.PreviousSyncClockTime; 3217_syncData.PreviousSyncClockTime = ourSyncTimeST; 3218_syncData.PreviousRepeatTime = TimeSpan.Zero; 3229_syncData.IsInSyncPeriod = true; 3235TimeSpan? previousSyncParentTimeSPT = (_syncData.SyncClock == this) ? 3240|| _syncData.SyncClockDiscontinuousEvent 3241|| previousSyncParentTimeSPT.Value <= _syncData.SyncClockBeginTime) 3249if (_syncData.SyncClock != this) // SyncClock is our child; account for SyncClock starting later than us 3251timeIntoSyncPeriodPT -= DivideTimeSpan(_syncData.SyncClockBeginTime, _appliedSpeedRatio); 3269_syncData.IsInSyncPeriod = true; 3270_syncData.PreviousSyncClockTime = TimeSpan.Zero; 3271_syncData.PreviousRepeatTime = TimeSpan.Zero; 3272_syncData.SyncClockDiscontinuousEvent = false; 3292Debug.Assert(_syncData != null); 3293Debug.Assert(_syncData.IsInSyncPeriod); 3296Debug.Assert(_syncData.SyncClock == this || _syncData.SyncClock._parent == this); 3315TimeSpan syncTimeST = _syncData.SyncClock.GetCurrentTimeCore(); 3316TimeSpan syncElapsedTimeST = syncTimeST - _syncData.PreviousSyncClockTime; // Elapsed from last tick 3322TimeSpan? effectiveDurationST = _syncData.SyncClockEffectiveDuration; 3323Duration syncDuration = _syncData.SyncClockResolvedDuration; 3326(_syncData.PreviousRepeatTime + syncTimeST >= effectiveDurationST.Value)) 3328_syncData.IsInSyncPeriod = false; // This is the last time we need to sync 3329_syncData.PreviousRepeatTime = TimeSpan.Zero; 3330_syncData.SyncClockDiscontinuousEvent = false; // Make sure we don't reenter the sync period 3341_syncData.PreviousSyncClockTime = TimeSpan.Zero; 3342_syncData.PreviousRepeatTime += syncDuration.TimeSpan; 3346_syncData.PreviousSyncClockTime = syncTimeST; 3355TimeSpan syncElapsedTimeLT = (_syncData.SyncClock == this) 3357: DivideTimeSpan(syncElapsedTimeST, _syncData.SyncClockSpeedRatio); 3395if (current._syncData != null) 3397current._syncData.IsInSyncPeriod = false; 3398current._syncData.SyncClockDiscontinuousEvent = true; 3828_syncData?.UpdateClockBeginTime();
System\Windows\Media\Animation\ClockGroup.cs (7)
346bool bufferingSlipNode = (_syncData != null // This variable makes sure that our slip node completes as needed 347&& _syncData.IsInSyncPeriod 348&& !_syncData.SyncClockHasReachedEffectiveDuration); 369if (bufferingSlipNode && _syncData.SyncClock == this) 440if (child._syncData != null) 443child._syncData.IsInSyncPeriod = false; 444child._syncData.UpdateClockBeginTime(); // Apply effects of realigning