| 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_OUTPUT_CONTEXT_PROVIDER_H_ | 5 #ifndef CC_OUTPUT_CONTEXT_PROVIDER_H_ |
| 6 #define CC_OUTPUT_CONTEXT_PROVIDER_H_ | 6 #define CC_OUTPUT_CONTEXT_PROVIDER_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "cc/base/cc_export.h" | 10 #include "cc/base/cc_export.h" |
| 11 | 11 |
| 12 class GrContext; | 12 class GrContext; |
| 13 |
| 13 namespace blink { class WebGraphicsContext3D; } | 14 namespace blink { class WebGraphicsContext3D; } |
| 14 namespace gpu { | 15 namespace gpu { |
| 15 class ContextSupport; | 16 class ContextSupport; |
| 16 namespace gles2 { class GLES2Interface; } | 17 namespace gles2 { class GLES2Interface; } |
| 17 } | 18 } |
| 18 | 19 |
| 19 namespace cc { | 20 namespace cc { |
| 20 struct ManagedMemoryPolicy; | 21 struct ManagedMemoryPolicy; |
| 21 | 22 |
| 22 class ContextProvider : public base::RefCountedThreadSafe<ContextProvider> { | 23 class ContextProvider : public base::RefCountedThreadSafe<ContextProvider> { |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 const MemoryPolicyChangedCallback& memory_policy_changed_callback) = 0; | 91 const MemoryPolicyChangedCallback& memory_policy_changed_callback) = 0; |
| 91 | 92 |
| 92 protected: | 93 protected: |
| 93 friend class base::RefCountedThreadSafe<ContextProvider>; | 94 friend class base::RefCountedThreadSafe<ContextProvider>; |
| 94 virtual ~ContextProvider() {} | 95 virtual ~ContextProvider() {} |
| 95 }; | 96 }; |
| 96 | 97 |
| 97 } // namespace cc | 98 } // namespace cc |
| 98 | 99 |
| 99 #endif // CC_OUTPUT_CONTEXT_PROVIDER_H_ | 100 #endif // CC_OUTPUT_CONTEXT_PROVIDER_H_ |
| OLD | NEW |