OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 CC_CONTEXT_PROVIDER_H_ | 5 #ifndef CC_OUTPUT_CONTEXT_PROVIDER_H_ |
6 #define CC_CONTEXT_PROVIDER_H_ | 6 #define CC_OUTPUT_CONTEXT_PROVIDER_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 | 9 |
10 class GrContext; | 10 class GrContext; |
11 namespace WebKit { class WebGraphicsContext3D; } | 11 namespace WebKit { class WebGraphicsContext3D; } |
12 | 12 |
13 namespace cc { | 13 namespace cc { |
14 | 14 |
15 class ContextProvider : public base::RefCountedThreadSafe<ContextProvider> { | 15 class ContextProvider : public base::RefCountedThreadSafe<ContextProvider> { |
16 public: | 16 public: |
(...skipping 15 matching lines...) Expand all Loading... |
32 // the context inside the provider is no longer valid. | 32 // the context inside the provider is no longer valid. |
33 virtual bool DestroyedOnMainThread() = 0; | 33 virtual bool DestroyedOnMainThread() = 0; |
34 | 34 |
35 protected: | 35 protected: |
36 friend class base::RefCountedThreadSafe<ContextProvider>; | 36 friend class base::RefCountedThreadSafe<ContextProvider>; |
37 virtual ~ContextProvider() {} | 37 virtual ~ContextProvider() {} |
38 }; | 38 }; |
39 | 39 |
40 } // namespace cc | 40 } // namespace cc |
41 | 41 |
42 #endif // CC_CONTEXT_PROVIDER_H_ | 42 #endif // CC_OUTPUT_CONTEXT_PROVIDER_H_ |
OLD | NEW |