|
Lines 459-466
private:
a/Source/WebCore/platform/graphics/ca/GraphicsLayerCA.h_sec1
|
| 459 |
moveOrCopyAnimations(Copy, fromLayer, toLayer); |
459 |
moveOrCopyAnimations(Copy, fromLayer, toLayer); |
| 460 |
} |
460 |
} |
| 461 |
|
461 |
|
|
|
462 |
// This represents the animation of a single property. There may be multiple transform animations for |
| 463 |
// a single transition or keyframe animation, so index is used to distinguish these. |
| 464 |
struct LayerPropertyAnimation { |
| 465 |
LayerPropertyAnimation(Ref<PlatformCAAnimation>&& caAnimation, const String& animationName, AnimatedPropertyID property, int index, int subIndex, Seconds timeOffset) |
| 466 |
: m_animation(WTFMove(caAnimation)) |
| 467 |
, m_name(animationName) |
| 468 |
, m_property(property) |
| 469 |
, m_index(index) |
| 470 |
, m_subIndex(subIndex) |
| 471 |
, m_timeOffset(timeOffset) |
| 472 |
{ } |
| 473 |
|
| 474 |
RefPtr<PlatformCAAnimation> m_animation; |
| 475 |
String m_name; |
| 476 |
AnimatedPropertyID m_property; |
| 477 |
int m_index; |
| 478 |
int m_subIndex; |
| 479 |
Seconds m_timeOffset; |
| 480 |
}; |
| 481 |
|
| 462 |
bool appendToUncommittedAnimations(const KeyframeValueList&, const TransformOperations*, const Animation*, const String& animationName, const FloatSize& boxSize, int animationIndex, Seconds timeOffset, bool isMatrixAnimation); |
482 |
bool appendToUncommittedAnimations(const KeyframeValueList&, const TransformOperations*, const Animation*, const String& animationName, const FloatSize& boxSize, int animationIndex, Seconds timeOffset, bool isMatrixAnimation); |
| 463 |
bool appendToUncommittedAnimations(const KeyframeValueList&, const FilterOperation*, const Animation*, const String& animationName, int animationIndex, Seconds timeOffset); |
483 |
bool appendToUncommittedAnimations(const KeyframeValueList&, const FilterOperation*, const Animation*, const String& animationName, int animationIndex, Seconds timeOffset); |
|
|
484 |
void appendToUncommittedAnimations(LayerPropertyAnimation&&); |
| 464 |
|
485 |
|
| 465 |
enum LayerChange : uint64_t { |
486 |
enum LayerChange : uint64_t { |
| 466 |
NoChange = 0, |
487 |
NoChange = 0, |
|
Lines 572-597
private:
a/Source/WebCore/platform/graphics/ca/GraphicsLayerCA.h_sec2
|
| 572 |
RetainPtr<CGImageRef> m_uncorrectedContentsImage; |
593 |
RetainPtr<CGImageRef> m_uncorrectedContentsImage; |
| 573 |
RetainPtr<CGImageRef> m_pendingContentsImage; |
594 |
RetainPtr<CGImageRef> m_pendingContentsImage; |
| 574 |
|
595 |
|
| 575 |
// This represents the animation of a single property. There may be multiple transform animations for |
|
|
| 576 |
// a single transition or keyframe animation, so index is used to distinguish these. |
| 577 |
struct LayerPropertyAnimation { |
| 578 |
LayerPropertyAnimation(Ref<PlatformCAAnimation>&& caAnimation, const String& animationName, AnimatedPropertyID property, int index, int subIndex, Seconds timeOffset) |
| 579 |
: m_animation(WTFMove(caAnimation)) |
| 580 |
, m_name(animationName) |
| 581 |
, m_property(property) |
| 582 |
, m_index(index) |
| 583 |
, m_subIndex(subIndex) |
| 584 |
, m_timeOffset(timeOffset) |
| 585 |
{ } |
| 586 |
|
| 587 |
RefPtr<PlatformCAAnimation> m_animation; |
| 588 |
String m_name; |
| 589 |
AnimatedPropertyID m_property; |
| 590 |
int m_index; |
| 591 |
int m_subIndex; |
| 592 |
Seconds m_timeOffset; |
| 593 |
}; |
| 594 |
|
| 595 |
// Uncommitted transitions and animations. |
596 |
// Uncommitted transitions and animations. |
| 596 |
Vector<LayerPropertyAnimation> m_uncomittedAnimations; |
597 |
Vector<LayerPropertyAnimation> m_uncomittedAnimations; |
| 597 |
|
598 |
|