OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 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 WebGraphicsContext3DProviderWrapper_h | |
6 #define WebGraphicsContext3DProviderWrapper_h | |
7 | |
8 #include "public/platform/WebGraphicsContext3DProvider.h" | |
9 #include "wtf/WeakPtr.h" | |
10 | |
11 namespace blink { | |
12 | |
13 class PLATFORM_EXPORT WebGraphicsContext3DProviderWrapper { | |
14 public: | |
15 WebGraphicsContext3DProviderWrapper(WebGraphicsContext3DProvider* provider) | |
16 : m_contextProvider(provider), m_weakPtrFactory(this) {} | |
17 WeakPtr<WebGraphicsContext3DProviderWrapper> createWeakPtr() { | |
18 return m_weakPtrFactory.createWeakPtr(); | |
19 } | |
20 WebGraphicsContext3DProvider* contextProvider() { return m_contextProvider; } | |
21 | |
22 private: | |
23 WebGraphicsContext3DProvider* m_contextProvider; | |
Justin Novosad
2016/11/08 19:38:54
This is your problem: this is supposed to be a uni
xidachen
2016/11/08 20:30:58
Yeah, that makes perfect sense. After I made this
| |
24 WeakPtrFactory<WebGraphicsContext3DProviderWrapper> m_weakPtrFactory; | |
25 }; | |
26 | |
27 } // namespace blink | |
28 | |
29 #endif // WebGraphicsContext3DProviderWrapper_h | |
OLD | NEW |