| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 #ifndef CompositorPendingAnimations_h | 31 #ifndef CompositorPendingAnimations_h |
| 32 #define CompositorPendingAnimations_h | 32 #define CompositorPendingAnimations_h |
| 33 | 33 |
| 34 #include "core/CoreExport.h" | 34 #include "core/CoreExport.h" |
| 35 #include "core/animation/Animation.h" | 35 #include "core/animation/Animation.h" |
| 36 #include "core/dom/TaskRunnerHelper.h" | 36 #include "core/dom/TaskRunnerHelper.h" |
| 37 #include "platform/Timer.h" | 37 #include "platform/Timer.h" |
| 38 #include "platform/graphics/CompositorElementId.h" | 38 #include "platform/graphics/CompositorElementId.h" |
| 39 #include "platform/heap/Handle.h" | 39 #include "platform/heap/Handle.h" |
| 40 #include "wtf/Optional.h" | 40 #include "platform/wtf/Optional.h" |
| 41 #include "wtf/Vector.h" | 41 #include "platform/wtf/Vector.h" |
| 42 | 42 |
| 43 namespace blink { | 43 namespace blink { |
| 44 | 44 |
| 45 // Manages the starting of pending animations on the compositor following a | 45 // Manages the starting of pending animations on the compositor following a |
| 46 // compositing update. | 46 // compositing update. |
| 47 // For CSS Animations, used to synchronize the start of main-thread animations | 47 // For CSS Animations, used to synchronize the start of main-thread animations |
| 48 // with compositor animations when both classes of CSS Animations are triggered | 48 // with compositor animations when both classes of CSS Animations are triggered |
| 49 // by the same recalc | 49 // by the same recalc |
| 50 class CORE_EXPORT CompositorPendingAnimations final | 50 class CORE_EXPORT CompositorPendingAnimations final |
| 51 : public GarbageCollectedFinalized<CompositorPendingAnimations> { | 51 : public GarbageCollectedFinalized<CompositorPendingAnimations> { |
| (...skipping 21 matching lines...) Expand all Loading... |
| 73 | 73 |
| 74 HeapVector<Member<Animation>> m_pending; | 74 HeapVector<Member<Animation>> m_pending; |
| 75 HeapVector<Member<Animation>> m_waitingForCompositorAnimationStart; | 75 HeapVector<Member<Animation>> m_waitingForCompositorAnimationStart; |
| 76 TaskRunnerTimer<CompositorPendingAnimations> m_timer; | 76 TaskRunnerTimer<CompositorPendingAnimations> m_timer; |
| 77 int m_compositorGroup; | 77 int m_compositorGroup; |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 } // namespace blink | 80 } // namespace blink |
| 81 | 81 |
| 82 #endif | 82 #endif |
| OLD | NEW |