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

Side by Side Diff: Source/modules/compositorworker/CompositorWorkerManager.h

Issue 1257723002: Simplify ownership of a ThreadState's interruptors. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Switch addInterruptor() to take a PassOwnPtr<> Created 5 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 #ifndef CompositorWorkerManager_h 5 #ifndef CompositorWorkerManager_h
6 #define CompositorWorkerManager_h 6 #define CompositorWorkerManager_h
7 7
8 #include "modules/ModulesExport.h" 8 #include "modules/ModulesExport.h"
9 #include "wtf/OwnPtr.h" 9 #include "wtf/OwnPtr.h"
10 #include "wtf/PassOwnPtr.h" 10 #include "wtf/PassOwnPtr.h"
(...skipping 30 matching lines...) Expand all
41 private: 41 private:
42 friend class CompositorWorkerManagerTest; 42 friend class CompositorWorkerManagerTest;
43 43
44 CompositorWorkerManager(); 44 CompositorWorkerManager();
45 ~CompositorWorkerManager(); 45 ~CompositorWorkerManager();
46 46
47 Mutex m_mutex; 47 Mutex m_mutex;
48 OwnPtr<WebThreadSupportingGC> m_thread; 48 OwnPtr<WebThreadSupportingGC> m_thread;
49 int m_workerCount = 0; 49 int m_workerCount = 0;
50 v8::Isolate* m_isolate = nullptr; 50 v8::Isolate* m_isolate = nullptr;
51 OwnPtr<V8IsolateInterruptor> m_interruptor;
52 }; 51 };
53 52
54 } // namespace blink 53 } // namespace blink
55 54
56 #endif // CompositorWorkerManager_h 55 #endif // CompositorWorkerManager_h
OLDNEW
« no previous file with comments | « Source/core/workers/WorkerThread.cpp ('k') | Source/modules/compositorworker/CompositorWorkerManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698