3 writes to _syncData
PresentationCore (3)
System\Windows\Media\Animation\Clock.cs (1)
630_syncData = new SyncData(this); // CanSlip clocks keep themselves synced
System\Windows\Media\Animation\ClockGroup.cs (2)
147_syncData = new SyncData(child); 148child._syncData = null; // The child will no longer self-sync
69 references to _syncData
PresentationCore (69)
System\Windows\Media\Animation\Clock.cs (62)
1188if (_syncData != null) 1190_syncData.IsInSyncPeriod = false; // Reset sync tracking 1844(_syncData == null || !_syncData.IsInSyncPeriod)) 2681if (_syncData != null && _syncData.IsInSyncPeriod && !_syncData.SyncClockHasReachedEffectiveDuration) 2873if (_syncData != null) 2875_syncData.SyncClockDiscontinuousEvent = true; // Notify the syncing node of discontinuity 2917if (_syncData != null && _syncData.IsInSyncPeriod && _parent.CurrentState != ClockState.Stopped) // We are already in a slip zone 2943if (_syncData != null && !_syncData.IsInSyncPeriod && _parent.CurrentState != ClockState.Stopped && 3180Debug.Assert(_syncData.SyncClock == this || _syncData.SyncClock._parent == this); 3183Debug.Assert(_syncData != null); 3184Debug.Assert(!_syncData.IsInSyncPeriod); 3199if (_syncData.SyncClock == this || previewCurrentTimeLT >= _syncData.SyncClockBeginTime) 3212TimeSpan ourSyncTimeST = (_syncData.SyncClock == this) ? 3214MultiplyTimeSpan(previewCurrentTimeLT - _syncData.SyncClockBeginTime, 3215_syncData.SyncClockSpeedRatio); 3217TimeSpan? syncClockEffectiveDurationST = _syncData.SyncClockEffectiveDuration; 3218if (_syncData.SyncClock == this || 3222Duration syncClockDuration = _syncData.SyncClockResolvedDuration; 3226_syncData.PreviousSyncClockTime = TimeSpan.FromTicks(ourSyncTimeST.Ticks % syncClockDuration.TimeSpan.Ticks); 3227_syncData.PreviousRepeatTime = ourSyncTimeST - _syncData.PreviousSyncClockTime; 3231_syncData.PreviousSyncClockTime = ourSyncTimeST; 3232_syncData.PreviousRepeatTime = TimeSpan.Zero; 3243_syncData.IsInSyncPeriod = true; 3249TimeSpan? previousSyncParentTimeSPT = (_syncData.SyncClock == this) ? 3254|| _syncData.SyncClockDiscontinuousEvent 3255|| previousSyncParentTimeSPT.Value <= _syncData.SyncClockBeginTime) 3263if (_syncData.SyncClock != this) // SyncClock is our child; account for SyncClock starting later than us 3265timeIntoSyncPeriodPT -= DivideTimeSpan(_syncData.SyncClockBeginTime, _appliedSpeedRatio); 3283_syncData.IsInSyncPeriod = true; 3284_syncData.PreviousSyncClockTime = TimeSpan.Zero; 3285_syncData.PreviousRepeatTime = TimeSpan.Zero; 3286_syncData.SyncClockDiscontinuousEvent = false; 3306Debug.Assert(_syncData != null); 3307Debug.Assert(_syncData.IsInSyncPeriod); 3310Debug.Assert(_syncData.SyncClock == this || _syncData.SyncClock._parent == this); 3329TimeSpan syncTimeST = _syncData.SyncClock.GetCurrentTimeCore(); 3330TimeSpan syncElapsedTimeST = syncTimeST - _syncData.PreviousSyncClockTime; // Elapsed from last tick 3336TimeSpan? effectiveDurationST = _syncData.SyncClockEffectiveDuration; 3337Duration syncDuration = _syncData.SyncClockResolvedDuration; 3340(_syncData.PreviousRepeatTime + syncTimeST >= effectiveDurationST.Value)) 3342_syncData.IsInSyncPeriod = false; // This is the last time we need to sync 3343_syncData.PreviousRepeatTime = TimeSpan.Zero; 3344_syncData.SyncClockDiscontinuousEvent = false; // Make sure we don't reenter the sync period 3355_syncData.PreviousSyncClockTime = TimeSpan.Zero; 3356_syncData.PreviousRepeatTime += syncDuration.TimeSpan; 3360_syncData.PreviousSyncClockTime = syncTimeST; 3369TimeSpan syncElapsedTimeLT = (_syncData.SyncClock == this) 3371: DivideTimeSpan(syncElapsedTimeST, _syncData.SyncClockSpeedRatio); 3409if (current._syncData != null) 3411current._syncData.IsInSyncPeriod = false; 3412current._syncData.SyncClockDiscontinuousEvent = true; 3845if (_syncData != null) 3847_syncData.UpdateClockBeginTime();
System\Windows\Media\Animation\ClockGroup.cs (7)
351bool bufferingSlipNode = (_syncData != null // This variable makes sure that our slip node completes as needed 352&& _syncData.IsInSyncPeriod 353&& !_syncData.SyncClockHasReachedEffectiveDuration); 374if (bufferingSlipNode && _syncData.SyncClock == this) 445if (child._syncData != null) 448child._syncData.IsInSyncPeriod = false; 449child._syncData.UpdateClockBeginTime(); // Apply effects of realigning