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);
143
child.
_syncData
= null; // The child will no longer self-sync
69 references to _syncData
PresentationCore (69)
System\Windows\Media\Animation\Clock.cs (62)
1175
if (
_syncData
!= null)
1177
_syncData
.IsInSyncPeriod = false; // Reset sync tracking
1831
(
_syncData
== null || !
_syncData
.IsInSyncPeriod))
2668
if (
_syncData
!= null &&
_syncData
.IsInSyncPeriod && !
_syncData
.SyncClockHasReachedEffectiveDuration)
2860
if (
_syncData
!= null)
2862
_syncData
.SyncClockDiscontinuousEvent = true; // Notify the syncing node of discontinuity
2904
if (
_syncData
!= null &&
_syncData
.IsInSyncPeriod && _parent.CurrentState != ClockState.Stopped) // We are already in a slip zone
2930
if (
_syncData
!= null && !
_syncData
.IsInSyncPeriod && _parent.CurrentState != ClockState.Stopped &&
3167
Debug.Assert(
_syncData
.SyncClock == this ||
_syncData
.SyncClock._parent == this);
3170
Debug.Assert(
_syncData
!= null);
3171
Debug.Assert(!
_syncData
.IsInSyncPeriod);
3186
if (
_syncData
.SyncClock == this || previewCurrentTimeLT >=
_syncData
.SyncClockBeginTime)
3199
TimeSpan ourSyncTimeST = (
_syncData
.SyncClock == this) ?
3201
MultiplyTimeSpan(previewCurrentTimeLT -
_syncData
.SyncClockBeginTime,
3202
_syncData
.SyncClockSpeedRatio);
3204
TimeSpan? syncClockEffectiveDurationST =
_syncData
.SyncClockEffectiveDuration;
3205
if (
_syncData
.SyncClock == this ||
3209
Duration 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;
3236
TimeSpan? previousSyncParentTimeSPT = (
_syncData
.SyncClock == this) ?
3241
||
_syncData
.SyncClockDiscontinuousEvent
3242
|| previousSyncParentTimeSPT.Value <=
_syncData
.SyncClockBeginTime)
3250
if (
_syncData
.SyncClock != this) // SyncClock is our child; account for SyncClock starting later than us
3252
timeIntoSyncPeriodPT -= DivideTimeSpan(
_syncData
.SyncClockBeginTime, _appliedSpeedRatio);
3270
_syncData
.IsInSyncPeriod = true;
3271
_syncData
.PreviousSyncClockTime = TimeSpan.Zero;
3272
_syncData
.PreviousRepeatTime = TimeSpan.Zero;
3273
_syncData
.SyncClockDiscontinuousEvent = false;
3293
Debug.Assert(
_syncData
!= null);
3294
Debug.Assert(
_syncData
.IsInSyncPeriod);
3297
Debug.Assert(
_syncData
.SyncClock == this ||
_syncData
.SyncClock._parent == this);
3316
TimeSpan syncTimeST =
_syncData
.SyncClock.GetCurrentTimeCore();
3317
TimeSpan syncElapsedTimeST = syncTimeST -
_syncData
.PreviousSyncClockTime; // Elapsed from last tick
3323
TimeSpan? effectiveDurationST =
_syncData
.SyncClockEffectiveDuration;
3324
Duration 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;
3356
TimeSpan syncElapsedTimeLT = (
_syncData
.SyncClock == this)
3358
: DivideTimeSpan(syncElapsedTimeST,
_syncData
.SyncClockSpeedRatio);
3396
if (current.
_syncData
!= null)
3398
current.
_syncData
.IsInSyncPeriod = false;
3399
current.
_syncData
.SyncClockDiscontinuousEvent = true;
3832
if (
_syncData
!= null)
3834
_syncData
.UpdateClockBeginTime();
System\Windows\Media\Animation\ClockGroup.cs (7)
346
bool bufferingSlipNode = (
_syncData
!= null // This variable makes sure that our slip node completes as needed
347
&&
_syncData
.IsInSyncPeriod
348
&& !
_syncData
.SyncClockHasReachedEffectiveDuration);
369
if (bufferingSlipNode &&
_syncData
.SyncClock == this)
440
if (child.
_syncData
!= null)
443
child.
_syncData
.IsInSyncPeriod = false;
444
child.
_syncData
.UpdateClockBeginTime(); // Apply effects of realigning