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 <stddef.h> |
| 9 #include <stdint.h> |
| 10 |
8 #include "base/callback.h" | 11 #include "base/callback.h" |
9 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
10 #include "base/synchronization/lock.h" | 13 #include "base/synchronization/lock.h" |
11 #include "cc/base/cc_export.h" | 14 #include "cc/base/cc_export.h" |
12 #include "gpu/command_buffer/common/capabilities.h" | 15 #include "gpu/command_buffer/common/capabilities.h" |
13 | 16 |
14 class GrContext; | 17 class GrContext; |
15 | 18 |
16 namespace base { | 19 namespace base { |
17 class Lock; | 20 class Lock; |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 const LostContextCallback& lost_context_callback) = 0; | 98 const LostContextCallback& lost_context_callback) = 0; |
96 | 99 |
97 protected: | 100 protected: |
98 friend class base::RefCountedThreadSafe<ContextProvider>; | 101 friend class base::RefCountedThreadSafe<ContextProvider>; |
99 virtual ~ContextProvider() {} | 102 virtual ~ContextProvider() {} |
100 }; | 103 }; |
101 | 104 |
102 } // namespace cc | 105 } // namespace cc |
103 | 106 |
104 #endif // CC_OUTPUT_CONTEXT_PROVIDER_H_ | 107 #endif // CC_OUTPUT_CONTEXT_PROVIDER_H_ |
OLD | NEW |