OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CC_OUTPUT_VULKAN_CONTEXT_PROVIDER_H_ |
| 6 #define CC_OUTPUT_VULKAN_CONTEXT_PROVIDER_H_ |
| 7 |
| 8 #include "base/memory/ref_counted.h" |
| 9 |
| 10 namespace gpu { |
| 11 class VulkanDeviceQueue; |
| 12 } |
| 13 |
| 14 namespace cc { |
| 15 |
| 16 // The VulkanContextProvider groups sharing of vulkan objects synchronously. |
| 17 class VulkanContextProvider |
| 18 : public base::RefCountedThreadSafe<VulkanContextProvider> { |
| 19 public: |
| 20 virtual gpu::VulkanDeviceQueue* GetDeviceQueue() = 0; |
| 21 |
| 22 protected: |
| 23 friend class base::RefCountedThreadSafe<VulkanContextProvider>; |
| 24 virtual ~VulkanContextProvider() {} |
| 25 }; |
| 26 |
| 27 } // namespace cc |
| 28 |
| 29 #endif // CC_OUTPUT_VULKAN_CONTEXT_PROVIDER_H_ |
OLD | NEW |