3 writes to _syncData
PresentationCore (3)
Core\CSharp\System\Windows\Media\Animation\Clock.cs (1)
632
_syncData
= new SyncData(this); // CanSlip clocks keep themselves synced
Core\CSharp\System\Windows\Media\Animation\ClockGroup.cs (2)
149
_syncData
= new SyncData(child);
150
child.
_syncData
= null; // The child will no longer self-sync
69 references to _syncData
PresentationCore (69)
Core\CSharp\System\Windows\Media\Animation\Clock.cs (62)
1191
if (
_syncData
!= null)
1193
_syncData
.IsInSyncPeriod = false; // Reset sync tracking
1847
(
_syncData
== null || !
_syncData
.IsInSyncPeriod))
2684
if (
_syncData
!= null &&
_syncData
.IsInSyncPeriod && !
_syncData
.SyncClockHasReachedEffectiveDuration)
2875
if (
_syncData
!= null)
2877
_syncData
.SyncClockDiscontinuousEvent = true; // Notify the syncing node of discontinuity
2919
if (
_syncData
!= null &&
_syncData
.IsInSyncPeriod && _parent.CurrentState != ClockState.Stopped) // We are already in a slip zone
2945
if (
_syncData
!= null && !
_syncData
.IsInSyncPeriod && _parent.CurrentState != ClockState.Stopped &&
3185
Debug.Assert(
_syncData
.SyncClock == this ||
_syncData
.SyncClock._parent == this);
3188
Debug.Assert(
_syncData
!= null);
3189
Debug.Assert(!
_syncData
.IsInSyncPeriod);
3204
if (
_syncData
.SyncClock == this || previewCurrentTimeLT >=
_syncData
.SyncClockBeginTime)
3217
TimeSpan ourSyncTimeST = (
_syncData
.SyncClock == this) ?
3219
MultiplyTimeSpan(previewCurrentTimeLT -
_syncData
.SyncClockBeginTime,
3220
_syncData
.SyncClockSpeedRatio);
3222
TimeSpan? syncClockEffectiveDurationST =
_syncData
.SyncClockEffectiveDuration;
3223
if (
_syncData
.SyncClock == this ||
3227
Duration syncClockDuration =
_syncData
.SyncClockResolvedDuration;
3231
_syncData
.PreviousSyncClockTime = TimeSpan.FromTicks(ourSyncTimeST.Ticks % syncClockDuration.TimeSpan.Ticks);
3232
_syncData
.PreviousRepeatTime = ourSyncTimeST -
_syncData
.PreviousSyncClockTime;
3236
_syncData
.PreviousSyncClockTime = ourSyncTimeST;
3237
_syncData
.PreviousRepeatTime = TimeSpan.Zero;
3248
_syncData
.IsInSyncPeriod = true;
3254
TimeSpan? previousSyncParentTimeSPT = (
_syncData
.SyncClock == this) ?
3259
||
_syncData
.SyncClockDiscontinuousEvent
3260
|| previousSyncParentTimeSPT.Value <=
_syncData
.SyncClockBeginTime)
3268
if (
_syncData
.SyncClock != this) // SyncClock is our child; account for SyncClock starting later than us
3270
timeIntoSyncPeriodPT -= DivideTimeSpan(
_syncData
.SyncClockBeginTime, _appliedSpeedRatio);
3289
_syncData
.IsInSyncPeriod = true;
3290
_syncData
.PreviousSyncClockTime = TimeSpan.Zero;
3291
_syncData
.PreviousRepeatTime = TimeSpan.Zero;
3292
_syncData
.SyncClockDiscontinuousEvent = false;
3312
Debug.Assert(
_syncData
!= null);
3313
Debug.Assert(
_syncData
.IsInSyncPeriod);
3316
Debug.Assert(
_syncData
.SyncClock == this ||
_syncData
.SyncClock._parent == this);
3335
TimeSpan syncTimeST =
_syncData
.SyncClock.GetCurrentTimeCore();
3336
TimeSpan syncElapsedTimeST = syncTimeST -
_syncData
.PreviousSyncClockTime; // Elapsed from last tick
3342
TimeSpan? effectiveDurationST =
_syncData
.SyncClockEffectiveDuration;
3343
Duration syncDuration =
_syncData
.SyncClockResolvedDuration;
3346
(
_syncData
.PreviousRepeatTime + syncTimeST >= effectiveDurationST.Value))
3348
_syncData
.IsInSyncPeriod = false; // This is the last time we need to sync
3349
_syncData
.PreviousRepeatTime = TimeSpan.Zero;
3350
_syncData
.SyncClockDiscontinuousEvent = false; // Make sure we don't reenter the sync period
3361
_syncData
.PreviousSyncClockTime = TimeSpan.Zero;
3362
_syncData
.PreviousRepeatTime += syncDuration.TimeSpan;
3366
_syncData
.PreviousSyncClockTime = syncTimeST;
3375
TimeSpan syncElapsedTimeLT = (
_syncData
.SyncClock == this)
3377
: DivideTimeSpan(syncElapsedTimeST,
_syncData
.SyncClockSpeedRatio);
3417
if (current.
_syncData
!= null)
3419
current.
_syncData
.IsInSyncPeriod = false;
3420
current.
_syncData
.SyncClockDiscontinuousEvent = true;
3852
if (
_syncData
!= null)
3854
_syncData
.UpdateClockBeginTime();
Core\CSharp\System\Windows\Media\Animation\ClockGroup.cs (7)
353
bool bufferingSlipNode = (
_syncData
!= null // This variable makes sure that our slip node completes as needed
354
&&
_syncData
.IsInSyncPeriod
355
&& !
_syncData
.SyncClockHasReachedEffectiveDuration);
376
if (bufferingSlipNode &&
_syncData
.SyncClock == this)
447
if (child.
_syncData
!= null)
450
child.
_syncData
.IsInSyncPeriod = false;
451
child.
_syncData
.UpdateClockBeginTime(); // Apply effects of realigning