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 "core/dom/CompositorProxy.h" | 5 #include "core/dom/CompositorProxy.h" |
6 | 6 |
7 #include "bindings/core/v8/ExceptionMessages.h" | 7 #include "bindings/core/v8/ExceptionMessages.h" |
8 #include "bindings/core/v8/ExceptionState.h" | 8 #include "bindings/core/v8/ExceptionState.h" |
9 #include "core/dom/DOMNodeIds.h" | 9 #include "core/dom/DOMNodeIds.h" |
10 #include "core/dom/ExceptionCode.h" | 10 #include "core/dom/ExceptionCode.h" |
11 #include "core/dom/ExecutionContext.h" | 11 #include "core/dom/ExecutionContext.h" |
12 #include "core/workers/WorkerClients.h" | 12 #include "core/workers/WorkerClients.h" |
13 #include "core/workers/WorkerGlobalScope.h" | 13 #include "core/workers/WorkerGlobalScope.h" |
14 #include "platform/CrossThreadFunctional.h" | |
15 #include "platform/graphics/CompositorMutableProperties.h" | 14 #include "platform/graphics/CompositorMutableProperties.h" |
16 #include "public/platform/Platform.h" | 15 #include "public/platform/Platform.h" |
17 #include "public/platform/WebTraceLocation.h" | 16 #include "public/platform/WebTraceLocation.h" |
| 17 #include "wtf/Functional.h" |
18 #include <algorithm> | 18 #include <algorithm> |
19 | 19 |
20 namespace blink { | 20 namespace blink { |
21 | 21 |
22 static const struct { | 22 static const struct { |
23 const char* name; | 23 const char* name; |
24 uint32_t property; | 24 uint32_t property; |
25 } allowedProperties[] = { | 25 } allowedProperties[] = { |
26 { "opacity", CompositorMutableProperty::kOpacity }, | 26 { "opacity", CompositorMutableProperty::kOpacity }, |
27 { "scrollleft", CompositorMutableProperty::kScrollLeft }, | 27 { "scrollleft", CompositorMutableProperty::kScrollLeft }, |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 return; | 274 return; |
275 m_connected = false; | 275 m_connected = false; |
276 if (isMainThread()) { | 276 if (isMainThread()) { |
277 decrementCompositorProxiedPropertiesForElement(m_elementId, m_compositor
MutableProperties); | 277 decrementCompositorProxiedPropertiesForElement(m_elementId, m_compositor
MutableProperties); |
278 } else { | 278 } else { |
279 Platform::current()->mainThread()->getWebTaskRunner()->postTask(BLINK_FR
OM_HERE, crossThreadBind(&decrementCompositorProxiedPropertiesForElement, m_elem
entId, m_compositorMutableProperties)); | 279 Platform::current()->mainThread()->getWebTaskRunner()->postTask(BLINK_FR
OM_HERE, crossThreadBind(&decrementCompositorProxiedPropertiesForElement, m_elem
entId, m_compositorMutableProperties)); |
280 } | 280 } |
281 } | 281 } |
282 | 282 |
283 } // namespace blink | 283 } // namespace blink |
OLD | NEW |