Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Side by Side Diff: third_party/WebKit/Source/core/dom/CompositorProxy.cpp

Issue 2123183002: Move crossThreadBind() from platform/ to wtf/ Base URL: https://chromium.googlesource.com/chromium/src.git@TRV_WTFCrossThreadCopier
Patch Set: Rebase Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp ('k') | third_party/WebKit/Source/core/dom/CrossThreadTask.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698