| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "modules/compositorworker/CompositorWorkerGlobalScope.h" | 5 #include "modules/compositorworker/CompositorWorkerGlobalScope.h" |
| 6 | 6 |
| 7 #include "bindings/core/v8/SerializedScriptValue.h" | 7 #include "bindings/core/v8/SerializedScriptValue.h" |
| 8 #include "core/workers/InProcessWorkerObjectProxy.h" | 8 #include "core/workers/InProcessWorkerObjectProxy.h" |
| 9 #include "core/workers/WorkerThreadStartupData.h" | 9 #include "core/workers/WorkerThreadStartupData.h" |
| 10 #include "modules/EventTargetModules.h" | 10 #include "modules/EventTargetModules.h" |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 return m_callbackCollection.registerCallback(callback); | 65 return m_callbackCollection.registerCallback(callback); |
| 66 } | 66 } |
| 67 | 67 |
| 68 void CompositorWorkerGlobalScope::cancelAnimationFrame(int id) | 68 void CompositorWorkerGlobalScope::cancelAnimationFrame(int id) |
| 69 { | 69 { |
| 70 m_callbackCollection.cancelCallback(id); | 70 m_callbackCollection.cancelCallback(id); |
| 71 } | 71 } |
| 72 | 72 |
| 73 bool CompositorWorkerGlobalScope::executeAnimationFrameCallbacks(double highResT
imeMs) | 73 bool CompositorWorkerGlobalScope::executeAnimationFrameCallbacks(double highResT
imeMs) |
| 74 { | 74 { |
| 75 TemporaryChange<bool> temporaryChange(m_executingAnimationFrameCallbacks, tr
ue); | 75 TemporaryChange<bool> temporaryChange(&m_executingAnimationFrameCallbacks, t
rue); |
| 76 m_callbackCollection.executeCallbacks(highResTimeMs, highResTimeMs); | 76 m_callbackCollection.executeCallbacks(highResTimeMs, highResTimeMs); |
| 77 return !m_callbackCollection.isEmpty(); | 77 return !m_callbackCollection.isEmpty(); |
| 78 } | 78 } |
| 79 | 79 |
| 80 CompositorWorkerThread* CompositorWorkerGlobalScope::thread() const | 80 CompositorWorkerThread* CompositorWorkerGlobalScope::thread() const |
| 81 { | 81 { |
| 82 return static_cast<CompositorWorkerThread*>(WorkerGlobalScope::thread()); | 82 return static_cast<CompositorWorkerThread*>(WorkerGlobalScope::thread()); |
| 83 } | 83 } |
| 84 | 84 |
| 85 } // namespace blink | 85 } // namespace blink |
| OLD | NEW |