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

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

Issue 1274023003: compositor-worker: Get the thread to run compositor-workers from the Platform. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 5 years, 4 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 | Annotate | Revision Log
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 "config.h" 5 #include "config.h"
6 #include "modules/compositorworker/CompositorWorkerThread.h" 6 #include "modules/compositorworker/CompositorWorkerThread.h"
7 7
8 #include "bindings/core/v8/V8Initializer.h" 8 #include "bindings/core/v8/V8Initializer.h"
9 #include "core/workers/WorkerObjectProxy.h" 9 #include "core/workers/WorkerObjectProxy.h"
10 #include "core/workers/WorkerThreadStartupData.h" 10 #include "core/workers/WorkerThreadStartupData.h"
(...skipping 18 matching lines...) Expand all
29 29
30 CompositorWorkerThread::~CompositorWorkerThread() 30 CompositorWorkerThread::~CompositorWorkerThread()
31 { 31 {
32 } 32 }
33 33
34 PassRefPtrWillBeRawPtr<WorkerGlobalScope> CompositorWorkerThread::createWorkerGl obalScope(PassOwnPtr<WorkerThreadStartupData> startupData) 34 PassRefPtrWillBeRawPtr<WorkerGlobalScope> CompositorWorkerThread::createWorkerGl obalScope(PassOwnPtr<WorkerThreadStartupData> startupData)
35 { 35 {
36 return CompositorWorkerGlobalScope::create(this, startupData, m_timeOrigin); 36 return CompositorWorkerGlobalScope::create(this, startupData, m_timeOrigin);
37 } 37 }
38 38
39 WebThreadSupportingGC& CompositorWorkerThread::backingThread() 39 WebThread& CompositorWorkerThread::backingThread()
40 { 40 {
41 return CompositorWorkerManager::instance()->compositorWorkerThread(); 41 return CompositorWorkerManager::instance()->compositorWorkerThread();
42 } 42 }
43 43
44 void CompositorWorkerThread::initializeBackingThread() 44 void CompositorWorkerThread::initializeBackingThread()
45 { 45 {
46 CompositorWorkerManager::instance()->initializeBackingThread(); 46 CompositorWorkerManager::instance()->initializeBackingThread();
47 } 47 }
48 48
49 void CompositorWorkerThread::shutdownBackingThread() 49 void CompositorWorkerThread::shutdownBackingThread()
(...skipping 15 matching lines...) Expand all
65 { 65 {
66 CompositorWorkerManager::instance()->destroyIsolate(); 66 CompositorWorkerManager::instance()->destroyIsolate();
67 } 67 }
68 68
69 void CompositorWorkerThread::terminateV8Execution() 69 void CompositorWorkerThread::terminateV8Execution()
70 { 70 {
71 CompositorWorkerManager::instance()->terminateV8Execution(); 71 CompositorWorkerManager::instance()->terminateV8Execution();
72 } 72 }
73 73
74 } // namespace blink 74 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698