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);
148
child.
_syncData
= null; // The child will no longer self-sync
69 references to _syncData
PresentationCore (69)
System\Windows\Media\Animation\Clock.cs (62)
1188
if (
_syncData
!= null)
1190
_syncData
.IsInSyncPeriod = false; // Reset sync tracking
1844
(
_syncData
== null || !
_syncData
.IsInSyncPeriod))
2681
if (
_syncData
!= null &&
_syncData
.IsInSyncPeriod && !
_syncData
.SyncClockHasReachedEffectiveDuration)
2873
if (
_syncData
!= null)
2875
_syncData
.SyncClockDiscontinuousEvent = true; // Notify the syncing node of discontinuity
2917
if (
_syncData
!= null &&
_syncData
.IsInSyncPeriod && _parent.CurrentState != ClockState.Stopped) // We are already in a slip zone
2943
if (
_syncData
!= null && !
_syncData
.IsInSyncPeriod && _parent.CurrentState != ClockState.Stopped &&
3180
Debug.Assert(
_syncData
.SyncClock == this ||
_syncData
.SyncClock._parent == this);
3183
Debug.Assert(
_syncData
!= null);
3184
Debug.Assert(!
_syncData
.IsInSyncPeriod);
3199
if (
_syncData
.SyncClock == this || previewCurrentTimeLT >=
_syncData
.SyncClockBeginTime)
3212
TimeSpan ourSyncTimeST = (
_syncData
.SyncClock == this) ?
3214
MultiplyTimeSpan(previewCurrentTimeLT -
_syncData
.SyncClockBeginTime,
3215
_syncData
.SyncClockSpeedRatio);
3217
TimeSpan? syncClockEffectiveDurationST =
_syncData
.SyncClockEffectiveDuration;
3218
if (
_syncData
.SyncClock == this ||
3222
Duration 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;
3249
TimeSpan? previousSyncParentTimeSPT = (
_syncData
.SyncClock == this) ?
3254
||
_syncData
.SyncClockDiscontinuousEvent
3255
|| previousSyncParentTimeSPT.Value <=
_syncData
.SyncClockBeginTime)
3263
if (
_syncData
.SyncClock != this) // SyncClock is our child; account for SyncClock starting later than us
3265
timeIntoSyncPeriodPT -= DivideTimeSpan(
_syncData
.SyncClockBeginTime, _appliedSpeedRatio);
3283
_syncData
.IsInSyncPeriod = true;
3284
_syncData
.PreviousSyncClockTime = TimeSpan.Zero;
3285
_syncData
.PreviousRepeatTime = TimeSpan.Zero;
3286
_syncData
.SyncClockDiscontinuousEvent = false;
3306
Debug.Assert(
_syncData
!= null);
3307
Debug.Assert(
_syncData
.IsInSyncPeriod);
3310
Debug.Assert(
_syncData
.SyncClock == this ||
_syncData
.SyncClock._parent == this);
3329
TimeSpan syncTimeST =
_syncData
.SyncClock.GetCurrentTimeCore();
3330
TimeSpan syncElapsedTimeST = syncTimeST -
_syncData
.PreviousSyncClockTime; // Elapsed from last tick
3336
TimeSpan? effectiveDurationST =
_syncData
.SyncClockEffectiveDuration;
3337
Duration 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;
3369
TimeSpan syncElapsedTimeLT = (
_syncData
.SyncClock == this)
3371
: DivideTimeSpan(syncElapsedTimeST,
_syncData
.SyncClockSpeedRatio);
3409
if (current.
_syncData
!= null)
3411
current.
_syncData
.IsInSyncPeriod = false;
3412
current.
_syncData
.SyncClockDiscontinuousEvent = true;
3845
if (
_syncData
!= null)
3847
_syncData
.UpdateClockBeginTime();
System\Windows\Media\Animation\ClockGroup.cs (7)
351
bool bufferingSlipNode = (
_syncData
!= null // This variable makes sure that our slip node completes as needed
352
&&
_syncData
.IsInSyncPeriod
353
&& !
_syncData
.SyncClockHasReachedEffectiveDuration);
374
if (bufferingSlipNode &&
_syncData
.SyncClock == this)
445
if (child.
_syncData
!= null)
448
child.
_syncData
.IsInSyncPeriod = false;
449
child.
_syncData
.UpdateClockBeginTime(); // Apply effects of realigning