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

Side by Side Diff: third_party/WebKit/Source/modules/compositorworker/CompositorWorkerGlobalScope.cpp

Issue 2204183002: Prepare CompositorWorker for per thread heap (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 3 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 "modules/compositorworker/CompositorWorkerGlobalScope.h" 5 #include "modules/compositorworker/CompositorWorkerGlobalScope.h"
6 6
7 #include "bindings/core/v8/SerializedScriptValue.h" 7 #include "bindings/core/v8/SerializedScriptValue.h"
8 #include "core/workers/InProcessWorkerObjectProxy.h" 8 #include "core/workers/InProcessWorkerObjectProxy.h"
9 #include "core/workers/WorkerThreadStartupData.h" 9 #include "core/workers/WorkerThreadStartupData.h"
10 #include "modules/EventTargetModules.h" 10 #include "modules/EventTargetModules.h"
(...skipping 20 matching lines...) Expand all
31 , m_executingAnimationFrameCallbacks(false) 31 , m_executingAnimationFrameCallbacks(false)
32 , m_callbackCollection(this) 32 , m_callbackCollection(this)
33 { 33 {
34 CompositorProxyClient::from(clients())->setGlobalScope(this); 34 CompositorProxyClient::from(clients())->setGlobalScope(this);
35 } 35 }
36 36
37 CompositorWorkerGlobalScope::~CompositorWorkerGlobalScope() 37 CompositorWorkerGlobalScope::~CompositorWorkerGlobalScope()
38 { 38 {
39 } 39 }
40 40
41 void CompositorWorkerGlobalScope::dispose()
42 {
43 WorkerGlobalScope::dispose();
44 CompositorProxyClient::from(clients())->dispose();
45 }
46
41 DEFINE_TRACE(CompositorWorkerGlobalScope) 47 DEFINE_TRACE(CompositorWorkerGlobalScope)
42 { 48 {
43 visitor->trace(m_callbackCollection); 49 visitor->trace(m_callbackCollection);
44 WorkerGlobalScope::trace(visitor); 50 WorkerGlobalScope::trace(visitor);
45 } 51 }
46 52
47 const AtomicString& CompositorWorkerGlobalScope::interfaceName() const 53 const AtomicString& CompositorWorkerGlobalScope::interfaceName() const
48 { 54 {
49 return EventTargetNames::CompositorWorkerGlobalScope; 55 return EventTargetNames::CompositorWorkerGlobalScope;
50 } 56 }
(...skipping 26 matching lines...) Expand all
77 m_callbackCollection.executeCallbacks(highResTimeMs, highResTimeMs); 83 m_callbackCollection.executeCallbacks(highResTimeMs, highResTimeMs);
78 return !m_callbackCollection.isEmpty(); 84 return !m_callbackCollection.isEmpty();
79 } 85 }
80 86
81 CompositorWorkerThread* CompositorWorkerGlobalScope::thread() const 87 CompositorWorkerThread* CompositorWorkerGlobalScope::thread() const
82 { 88 {
83 return static_cast<CompositorWorkerThread*>(WorkerGlobalScope::thread()); 89 return static_cast<CompositorWorkerThread*>(WorkerGlobalScope::thread());
84 } 90 }
85 91
86 } // namespace blink 92 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698