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
69 references to _syncData
PresentationCore (69)
System\Windows\Media\Animation\Clock.cs (62)
1175if (_syncData != null) 1177_syncData.IsInSyncPeriod = false; // Reset sync tracking 1831(_syncData == null || !_syncData.IsInSyncPeriod)) 2668if (_syncData != null && _syncData.IsInSyncPeriod && !_syncData.SyncClockHasReachedEffectiveDuration) 2860if (_syncData != null) 2862_syncData.SyncClockDiscontinuousEvent = true; // Notify the syncing node of discontinuity 2904if (_syncData != null && _syncData.IsInSyncPeriod && _parent.CurrentState != ClockState.Stopped) // We are already in a slip zone 2930if (_syncData != null && !_syncData.IsInSyncPeriod && _parent.CurrentState != ClockState.Stopped && 3167Debug.Assert(_syncData.SyncClock == this || _syncData.SyncClock._parent == this); 3170Debug.Assert(_syncData != null); 3171Debug.Assert(!_syncData.IsInSyncPeriod); 3186if (_syncData.SyncClock == this || previewCurrentTimeLT >= _syncData.SyncClockBeginTime) 3199TimeSpan ourSyncTimeST = (_syncData.SyncClock == this) ? 3201MultiplyTimeSpan(previewCurrentTimeLT - _syncData.SyncClockBeginTime, 3202_syncData.SyncClockSpeedRatio); 3204TimeSpan? syncClockEffectiveDurationST = _syncData.SyncClockEffectiveDuration; 3205if (_syncData.SyncClock == this || 3209Duration syncClockDuration = _syncData.SyncClockResolvedDuration; 3213_syncData.PreviousSyncClockTime = TimeSpan.FromTicks(ourSyncTimeST.Ticks % syncClockDuration.TimeSpan.Ticks); 3214_syncData.PreviousRepeatTime = ourSyncTimeST - _syncData.PreviousSyncClockTime; 3218_syncData.PreviousSyncClockTime = ourSyncTimeST; 3219_syncData.PreviousRepeatTime = TimeSpan.Zero; 3230_syncData.IsInSyncPeriod = true; 3236TimeSpan? previousSyncParentTimeSPT = (_syncData.SyncClock == this) ? 3241|| _syncData.SyncClockDiscontinuousEvent 3242|| previousSyncParentTimeSPT.Value <= _syncData.SyncClockBeginTime) 3250if (_syncData.SyncClock != this) // SyncClock is our child; account for SyncClock starting later than us 3252timeIntoSyncPeriodPT -= DivideTimeSpan(_syncData.SyncClockBeginTime, _appliedSpeedRatio); 3270_syncData.IsInSyncPeriod = true; 3271_syncData.PreviousSyncClockTime = TimeSpan.Zero; 3272_syncData.PreviousRepeatTime = TimeSpan.Zero; 3273_syncData.SyncClockDiscontinuousEvent = false; 3293Debug.Assert(_syncData != null); 3294Debug.Assert(_syncData.IsInSyncPeriod); 3297Debug.Assert(_syncData.SyncClock == this || _syncData.SyncClock._parent == this); 3316TimeSpan syncTimeST = _syncData.SyncClock.GetCurrentTimeCore(); 3317TimeSpan syncElapsedTimeST = syncTimeST - _syncData.PreviousSyncClockTime; // Elapsed from last tick 3323TimeSpan? effectiveDurationST = _syncData.SyncClockEffectiveDuration; 3324Duration syncDuration = _syncData.SyncClockResolvedDuration; 3327(_syncData.PreviousRepeatTime + syncTimeST >= effectiveDurationST.Value)) 3329_syncData.IsInSyncPeriod = false; // This is the last time we need to sync 3330_syncData.PreviousRepeatTime = TimeSpan.Zero; 3331_syncData.SyncClockDiscontinuousEvent = false; // Make sure we don't reenter the sync period 3342_syncData.PreviousSyncClockTime = TimeSpan.Zero; 3343_syncData.PreviousRepeatTime += syncDuration.TimeSpan; 3347_syncData.PreviousSyncClockTime = syncTimeST; 3356TimeSpan syncElapsedTimeLT = (_syncData.SyncClock == this) 3358: DivideTimeSpan(syncElapsedTimeST, _syncData.SyncClockSpeedRatio); 3396if (current._syncData != null) 3398current._syncData.IsInSyncPeriod = false; 3399current._syncData.SyncClockDiscontinuousEvent = true; 3832if (_syncData != null) 3834_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