| 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 #ifndef CompositorWorkerGlobalScope_h | 5 #ifndef CompositorWorkerGlobalScope_h |
| 6 #define CompositorWorkerGlobalScope_h | 6 #define CompositorWorkerGlobalScope_h |
| 7 | 7 |
| 8 #include "core/dom/CompositorProxyClient.h" | 8 #include "core/dom/CompositorProxyClient.h" |
| 9 #include "core/dom/FrameRequestCallbackCollection.h" | 9 #include "core/dom/FrameRequestCallbackCollection.h" |
| 10 #include "core/dom/MessagePort.h" | 10 #include "core/dom/MessagePort.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 | 31 |
| 32 void dispose() override; | 32 void dispose() override; |
| 33 | 33 |
| 34 // EventTarget | 34 // EventTarget |
| 35 const AtomicString& interfaceName() const override; | 35 const AtomicString& interfaceName() const override; |
| 36 | 36 |
| 37 void postMessage(ExecutionContext*, | 37 void postMessage(ExecutionContext*, |
| 38 PassRefPtr<SerializedScriptValue>, | 38 PassRefPtr<SerializedScriptValue>, |
| 39 const MessagePortArray&, | 39 const MessagePortArray&, |
| 40 ExceptionState&); | 40 ExceptionState&); |
| 41 static bool canTransferArrayBuffer() { return true; } | 41 static bool canTransferArrayBuffersAndImageBitmaps() { return true; } |
| 42 DEFINE_ATTRIBUTE_EVENT_LISTENER(message); | 42 DEFINE_ATTRIBUTE_EVENT_LISTENER(message); |
| 43 | 43 |
| 44 int requestAnimationFrame(FrameRequestCallback*); | 44 int requestAnimationFrame(FrameRequestCallback*); |
| 45 void cancelAnimationFrame(int id); | 45 void cancelAnimationFrame(int id); |
| 46 bool executeAnimationFrameCallbacks(double highResTimeMs); | 46 bool executeAnimationFrameCallbacks(double highResTimeMs); |
| 47 | 47 |
| 48 // ExecutionContext: | 48 // ExecutionContext: |
| 49 bool isCompositorWorkerGlobalScope() const override { return true; } | 49 bool isCompositorWorkerGlobalScope() const override { return true; } |
| 50 | 50 |
| 51 DECLARE_VIRTUAL_TRACE(); | 51 DECLARE_VIRTUAL_TRACE(); |
| 52 | 52 |
| 53 private: | 53 private: |
| 54 CompositorWorkerGlobalScope(const KURL&, | 54 CompositorWorkerGlobalScope(const KURL&, |
| 55 const String& userAgent, | 55 const String& userAgent, |
| 56 CompositorWorkerThread*, | 56 CompositorWorkerThread*, |
| 57 double timeOrigin, | 57 double timeOrigin, |
| 58 std::unique_ptr<SecurityOrigin::PrivilegeData>, | 58 std::unique_ptr<SecurityOrigin::PrivilegeData>, |
| 59 WorkerClients*); | 59 WorkerClients*); |
| 60 | 60 |
| 61 InProcessWorkerObjectProxy& workerObjectProxy() const; | 61 InProcessWorkerObjectProxy& workerObjectProxy() const; |
| 62 | 62 |
| 63 bool m_executingAnimationFrameCallbacks; | 63 bool m_executingAnimationFrameCallbacks; |
| 64 FrameRequestCallbackCollection m_callbackCollection; | 64 FrameRequestCallbackCollection m_callbackCollection; |
| 65 }; | 65 }; |
| 66 | 66 |
| 67 } // namespace blink | 67 } // namespace blink |
| 68 | 68 |
| 69 #endif // CompositorWorkerGlobalScope_h | 69 #endif // CompositorWorkerGlobalScope_h |
| OLD | NEW |