| 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> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "base/synchronization/lock.h" | 13 #include "base/synchronization/lock.h" |
| 14 #include "cc/base/cc_export.h" | 14 #include "cc/cc_export.h" |
| 15 #include "cc/output/context_cache_controller.h" | 15 #include "cc/output/context_cache_controller.h" |
| 16 #include "gpu/command_buffer/common/capabilities.h" | 16 #include "gpu/command_buffer/common/capabilities.h" |
| 17 | 17 |
| 18 class GrContext; | 18 class GrContext; |
| 19 | 19 |
| 20 namespace base { | 20 namespace base { |
| 21 class Lock; | 21 class Lock; |
| 22 } | 22 } |
| 23 | 23 |
| 24 namespace gpu { | 24 namespace gpu { |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 virtual base::Lock* GetLock() = 0; | 92 virtual base::Lock* GetLock() = 0; |
| 93 | 93 |
| 94 protected: | 94 protected: |
| 95 friend class base::RefCountedThreadSafe<ContextProvider>; | 95 friend class base::RefCountedThreadSafe<ContextProvider>; |
| 96 virtual ~ContextProvider() {} | 96 virtual ~ContextProvider() {} |
| 97 }; | 97 }; |
| 98 | 98 |
| 99 } // namespace cc | 99 } // namespace cc |
| 100 | 100 |
| 101 #endif // CC_OUTPUT_CONTEXT_PROVIDER_H_ | 101 #endif // CC_OUTPUT_CONTEXT_PROVIDER_H_ |
| OLD | NEW |