| 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 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 m_currentTimePending = false; | 288 m_currentTimePending = false; |
| 289 } | 289 } |
| 290 | 290 |
| 291 if (shouldStart) { | 291 if (shouldStart) { |
| 292 m_compositorGroup = compositorGroup; | 292 m_compositorGroup = compositorGroup; |
| 293 if (startOnCompositor) { | 293 if (startOnCompositor) { |
| 294 if (isCandidateForAnimationOnCompositor()) | 294 if (isCandidateForAnimationOnCompositor()) |
| 295 createCompositorPlayer(); | 295 createCompositorPlayer(); |
| 296 | 296 |
| 297 if (maybeStartAnimationOnCompositor()) | 297 if (maybeStartAnimationOnCompositor()) |
| 298 m_compositorState = wrapUnique(new CompositorState(*this)); | 298 m_compositorState = WTF::wrapUnique(new CompositorState(*this)); |
| 299 else | 299 else |
| 300 cancelIncompatibleAnimationsOnCompositor(); | 300 cancelIncompatibleAnimationsOnCompositor(); |
| 301 } | 301 } |
| 302 } | 302 } |
| 303 | 303 |
| 304 return true; | 304 return true; |
| 305 } | 305 } |
| 306 | 306 |
| 307 void Animation::postCommit(double timelineTime) { | 307 void Animation::postCommit(double timelineTime) { |
| 308 PlayStateUpdateScope updateScope(*this, TimingUpdateOnDemand, | 308 PlayStateUpdateScope updateScope(*this, TimingUpdateOnDemand, |
| (...skipping 815 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1124 visitor->trace(m_timeline); | 1124 visitor->trace(m_timeline); |
| 1125 visitor->trace(m_pendingFinishedEvent); | 1125 visitor->trace(m_pendingFinishedEvent); |
| 1126 visitor->trace(m_pendingCancelledEvent); | 1126 visitor->trace(m_pendingCancelledEvent); |
| 1127 visitor->trace(m_finishedPromise); | 1127 visitor->trace(m_finishedPromise); |
| 1128 visitor->trace(m_readyPromise); | 1128 visitor->trace(m_readyPromise); |
| 1129 EventTargetWithInlineData::trace(visitor); | 1129 EventTargetWithInlineData::trace(visitor); |
| 1130 ActiveDOMObject::trace(visitor); | 1130 ActiveDOMObject::trace(visitor); |
| 1131 } | 1131 } |
| 1132 | 1132 |
| 1133 } // namespace blink | 1133 } // namespace blink |
| OLD | NEW |