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

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

Issue 1895873006: compositor-worker: Initialize CW machinery plumbing to compositor and fire CW rAF callbacks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Bring up oilpan support during compositor worker creation and oilpan the compositor mutator and pro… Created 4 years, 7 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/CompositorWorkerThread.h" 5 #include "modules/compositorworker/CompositorWorkerThread.h"
6 6
7 #include "bindings/core/v8/V8GCController.h" 7 #include "bindings/core/v8/V8GCController.h"
8 #include "bindings/core/v8/V8Initializer.h" 8 #include "bindings/core/v8/V8Initializer.h"
9 #include "core/workers/WorkerBackingThread.h" 9 #include "core/workers/WorkerBackingThread.h"
10 #include "core/workers/WorkerObjectProxy.h" 10 #include "core/workers/WorkerObjectProxy.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 { 64 {
65 return *BackingThreadHolder::instance().thread(); 65 return *BackingThreadHolder::instance().thread();
66 } 66 }
67 67
68 WorkerGlobalScope*CompositorWorkerThread::createWorkerGlobalScope(PassOwnPtr<Wor kerThreadStartupData> startupData) 68 WorkerGlobalScope*CompositorWorkerThread::createWorkerGlobalScope(PassOwnPtr<Wor kerThreadStartupData> startupData)
69 { 69 {
70 TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("compositor-worker"), "CompositorWork erThread::createWorkerGlobalScope"); 70 TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("compositor-worker"), "CompositorWork erThread::createWorkerGlobalScope");
71 return CompositorWorkerGlobalScope::create(this, startupData, m_timeOrigin); 71 return CompositorWorkerGlobalScope::create(this, startupData, m_timeOrigin);
72 } 72 }
73 73
74 void CompositorWorkerThread::ensureSharedBackingThread()
75 {
76 BackingThreadHolder::instance();
77 }
78
74 void CompositorWorkerThread::clearSharedBackingThread() 79 void CompositorWorkerThread::clearSharedBackingThread()
75 { 80 {
76 BackingThreadHolder::instance().clear(); 81 BackingThreadHolder::instance().clear();
77 } 82 }
78 83
79 void CompositorWorkerThread::resetSharedBackingThreadForTest() 84 void CompositorWorkerThread::resetSharedBackingThreadForTest()
80 { 85 {
81 BackingThreadHolder::instance().resetForTest(); 86 BackingThreadHolder::instance().resetForTest();
82 } 87 }
83 88
84 } // namespace blink 89 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698