| 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 <algorithm> |
| 7 #include "bindings/core/v8/ExceptionMessages.h" | 8 #include "bindings/core/v8/ExceptionMessages.h" |
| 8 #include "bindings/core/v8/ExceptionState.h" | 9 #include "bindings/core/v8/ExceptionState.h" |
| 9 #include "core/dom/CompositorWorkerProxyClient.h" | 10 #include "core/dom/CompositorWorkerProxyClient.h" |
| 10 #include "core/dom/DOMNodeIds.h" | 11 #include "core/dom/DOMNodeIds.h" |
| 11 #include "core/dom/ExceptionCode.h" | 12 #include "core/dom/ExceptionCode.h" |
| 12 #include "core/dom/ExecutionContext.h" | 13 #include "core/dom/ExecutionContext.h" |
| 13 #include "core/workers/WorkerClients.h" | 14 #include "core/workers/WorkerClients.h" |
| 14 #include "core/workers/WorkerGlobalScope.h" | 15 #include "core/workers/WorkerGlobalScope.h" |
| 15 #include "platform/CrossThreadFunctional.h" | 16 #include "platform/CrossThreadFunctional.h" |
| 16 #include "platform/graphics/CompositorMutableProperties.h" | 17 #include "platform/graphics/CompositorMutableProperties.h" |
| 17 #include "public/platform/Platform.h" | 18 #include "public/platform/Platform.h" |
| 18 #include "public/platform/WebTraceLocation.h" | 19 #include "public/platform/WebTraceLocation.h" |
| 19 #include <algorithm> | |
| 20 | 20 |
| 21 namespace blink { | 21 namespace blink { |
| 22 | 22 |
| 23 static const struct { | 23 static const struct { |
| 24 const char* name; | 24 const char* name; |
| 25 uint32_t property; | 25 uint32_t property; |
| 26 } allowedProperties[] = { | 26 } allowedProperties[] = { |
| 27 {"opacity", CompositorMutableProperty::kOpacity}, | 27 {"opacity", CompositorMutableProperty::kOpacity}, |
| 28 {"scrollleft", CompositorMutableProperty::kScrollLeft}, | 28 {"scrollleft", CompositorMutableProperty::kScrollLeft}, |
| 29 {"scrolltop", CompositorMutableProperty::kScrollTop}, | 29 {"scrolltop", CompositorMutableProperty::kScrollTop}, |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 m_elementId, m_compositorMutableProperties); | 299 m_elementId, m_compositorMutableProperties); |
| 300 } else { | 300 } else { |
| 301 Platform::current()->mainThread()->getWebTaskRunner()->postTask( | 301 Platform::current()->mainThread()->getWebTaskRunner()->postTask( |
| 302 BLINK_FROM_HERE, | 302 BLINK_FROM_HERE, |
| 303 crossThreadBind(&decrementCompositorProxiedPropertiesForElement, | 303 crossThreadBind(&decrementCompositorProxiedPropertiesForElement, |
| 304 m_elementId, m_compositorMutableProperties)); | 304 m_elementId, m_compositorMutableProperties)); |
| 305 } | 305 } |
| 306 } | 306 } |
| 307 | 307 |
| 308 } // namespace blink | 308 } // namespace blink |
| OLD | NEW |