| 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 } kAllowedProperties[] = { | 26 } kAllowedProperties[] = { |
| 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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 element_id_, compositor_mutable_properties_); | 305 element_id_, compositor_mutable_properties_); |
| 306 } else { | 306 } else { |
| 307 Platform::Current()->MainThread()->GetWebTaskRunner()->PostTask( | 307 Platform::Current()->MainThread()->GetWebTaskRunner()->PostTask( |
| 308 BLINK_FROM_HERE, | 308 BLINK_FROM_HERE, |
| 309 CrossThreadBind(&DecrementCompositorProxiedPropertiesForElement, | 309 CrossThreadBind(&DecrementCompositorProxiedPropertiesForElement, |
| 310 element_id_, compositor_mutable_properties_)); | 310 element_id_, compositor_mutable_properties_)); |
| 311 } | 311 } |
| 312 } | 312 } |
| 313 | 313 |
| 314 } // namespace blink | 314 } // namespace blink |
| OLD | NEW |