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

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

Issue 1164753004: Tidy up CompositorWorkerManager unit tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 5 years, 6 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/CompositorWorker.h" 6 #include "modules/compositorworker/CompositorWorker.h"
7 7
8 #include "bindings/core/v8/ExceptionState.h" 8 #include "bindings/core/v8/ExceptionState.h"
9 #include "core/dom/Document.h" 9 #include "core/dom/Document.h"
10 #include "core/dom/ExceptionCode.h" 10 #include "core/dom/ExceptionCode.h"
(...skipping 29 matching lines...) Expand all
40 } 40 }
41 41
42 const AtomicString& CompositorWorker::interfaceName() const 42 const AtomicString& CompositorWorker::interfaceName() const
43 { 43 {
44 return EventTargetNames::CompositorWorker; 44 return EventTargetNames::CompositorWorker;
45 } 45 }
46 46
47 WorkerGlobalScopeProxy* CompositorWorker::createWorkerGlobalScopeProxy(Execution Context* worker) 47 WorkerGlobalScopeProxy* CompositorWorker::createWorkerGlobalScopeProxy(Execution Context* worker)
48 { 48 {
49 ASSERT(executionContext()->isDocument()); 49 ASSERT(executionContext()->isDocument());
50 OwnPtrWillBeRawPtr<WorkerClients> workerClients = WorkerClients::create(); 50 return new CompositorWorkerMessagingProxy(this);
51 return new CompositorWorkerMessagingProxy(this, workerClients.release());
52 } 51 }
53 52
54 } // namespace blink 53 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/workers/WorkerThreadTest.cpp ('k') | Source/modules/compositorworker/CompositorWorkerManagerTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698