| 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 30 matching lines...) Expand all Loading... |
| 41 #include "core/dom/TaskRunnerHelper.h" | 41 #include "core/dom/TaskRunnerHelper.h" |
| 42 #include "core/events/AnimationPlaybackEvent.h" | 42 #include "core/events/AnimationPlaybackEvent.h" |
| 43 #include "core/frame/UseCounter.h" | 43 #include "core/frame/UseCounter.h" |
| 44 #include "core/inspector/InspectorTraceEvents.h" | 44 #include "core/inspector/InspectorTraceEvents.h" |
| 45 #include "core/probe/CoreProbes.h" | 45 #include "core/probe/CoreProbes.h" |
| 46 #include "platform/RuntimeEnabledFeatures.h" | 46 #include "platform/RuntimeEnabledFeatures.h" |
| 47 #include "platform/WebTaskRunner.h" | 47 #include "platform/WebTaskRunner.h" |
| 48 #include "platform/animation/CompositorAnimationPlayer.h" | 48 #include "platform/animation/CompositorAnimationPlayer.h" |
| 49 #include "platform/heap/Persistent.h" | 49 #include "platform/heap/Persistent.h" |
| 50 #include "platform/instrumentation/tracing/TraceEvent.h" | 50 #include "platform/instrumentation/tracing/TraceEvent.h" |
| 51 #include "platform/wtf/MathExtras.h" |
| 52 #include "platform/wtf/PtrUtil.h" |
| 51 #include "public/platform/Platform.h" | 53 #include "public/platform/Platform.h" |
| 52 #include "public/platform/WebCompositorSupport.h" | 54 #include "public/platform/WebCompositorSupport.h" |
| 53 #include "wtf/MathExtras.h" | |
| 54 #include "wtf/PtrUtil.h" | |
| 55 | 55 |
| 56 namespace blink { | 56 namespace blink { |
| 57 | 57 |
| 58 namespace { | 58 namespace { |
| 59 | 59 |
| 60 static unsigned nextSequenceNumber() { | 60 static unsigned nextSequenceNumber() { |
| 61 static unsigned next = 0; | 61 static unsigned next = 0; |
| 62 return ++next; | 62 return ++next; |
| 63 } | 63 } |
| 64 } | 64 } |
| (...skipping 1108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1173 DCHECK(!m_compositorPlayer); | 1173 DCHECK(!m_compositorPlayer); |
| 1174 } | 1174 } |
| 1175 | 1175 |
| 1176 void Animation::CompositorAnimationPlayerHolder::detach() { | 1176 void Animation::CompositorAnimationPlayerHolder::detach() { |
| 1177 DCHECK(m_compositorPlayer); | 1177 DCHECK(m_compositorPlayer); |
| 1178 m_compositorPlayer->setAnimationDelegate(nullptr); | 1178 m_compositorPlayer->setAnimationDelegate(nullptr); |
| 1179 m_animation = nullptr; | 1179 m_animation = nullptr; |
| 1180 m_compositorPlayer.reset(); | 1180 m_compositorPlayer.reset(); |
| 1181 } | 1181 } |
| 1182 } // namespace blink | 1182 } // namespace blink |
| OLD | NEW |