Chromium Code Reviews| Index: cc/output/context_provider.h |
| diff --git a/cc/output/context_provider.h b/cc/output/context_provider.h |
| index 7362e8b55aa9acffd62060af1ed08c766581c4f2..03a7ab63577d7d7c37cfecc1b5edafe302cab34c 100644 |
| --- a/cc/output/context_provider.h |
| +++ b/cc/output/context_provider.h |
| @@ -7,6 +7,7 @@ |
| #include "base/callback.h" |
| #include "base/memory/ref_counted.h" |
| +#include "base/memory/weak_ptr.h" |
| #include "cc/base/cc_export.h" |
| #include "gpu/command_buffer/common/capabilities.h" |
| @@ -20,7 +21,8 @@ namespace gles2 { class GLES2Interface; } |
| namespace cc { |
| struct ManagedMemoryPolicy; |
| -class ContextProvider : public base::RefCountedThreadSafe<ContextProvider> { |
| +class ContextProvider : public base::RefCountedThreadSafe<ContextProvider>, |
| + public base::SupportsWeakPtr<ContextProvider> { |
|
danakj
2014/07/10 17:09:15
ಠ_ಠ let's not do this please
|
| public: |
| // Bind the 3d context to the current thread. This should be called before |
| // accessing the contexts. Calling it more than once should have no effect. |