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

Side by Side Diff: third_party/WebKit/Source/web/CompositorProxyClientImpl.h

Issue 2774223002: CompositorWorkerProxyClientImpl to CompositorProxy cross thread reference is using WeakMember (Closed)
Patch Set: Added comments Created 3 years, 8 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
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CompositorProxyClientImpl_h
6 #define CompositorProxyClientImpl_h
7
8 #include "core/dom/CompositorProxyClient.h"
9
10 namespace blink {
11
12 // Registery for CompositorProxies on the control thread.
flackr 2017/04/04 02:17:07 nit: s/Registery/Registry
keishi 2017/04/04 05:54:43 Done.
13 // Owned by the control thread.
14 class CompositorProxyClientImpl
15 : public GarbageCollectedFinalized<CompositorProxyClientImpl>,
16 public CompositorProxyClient {
17 USING_GARBAGE_COLLECTED_MIXIN(CompositorProxyClientImpl);
18
19 public:
20 DECLARE_TRACE();
21
22 // CompositorProxyClient:
23 void registerCompositorProxy(CompositorProxy*) override;
24 void unregisterCompositorProxy(CompositorProxy*) override;
25
26 HeapHashSet<WeakMember<CompositorProxy>>& proxies() { return m_proxies; }
27
28 private:
29 // CompositorProxy can be constructed in the main thread and control thread.
30 // However this only ever contains ones constructed in the compositor worker
31 // thread.
32 HeapHashSet<WeakMember<CompositorProxy>> m_proxies;
33 };
34
35 } // namespace blink
36
37 #endif // CompositorProxyClientImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698