Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Side by Side Diff: cc/output/vulkan_context_provider.h

Issue 1892303003: Added the Vulkan Context Provider implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. 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 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_VULKAN_CONTEXT_PROVIDER_H_ 5 #ifndef CC_OUTPUT_VULKAN_CONTEXT_PROVIDER_H_
6 #define CC_OUTPUT_VULKAN_CONTEXT_PROVIDER_H_ 6 #define CC_OUTPUT_VULKAN_CONTEXT_PROVIDER_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 9
10 namespace gpu { 10 namespace gpu {
11 class VulkanDeviceQueue; 11 class VulkanDeviceQueue;
12 } 12 }
13 13
14 namespace cc { 14 namespace cc {
15 15
16 // The VulkanContextProvider groups sharing of vulkan objects synchronously. 16 // The VulkanContextProvider groups sharing of vulkan objects synchronously.
17 class VulkanContextProvider 17 class VulkanContextProvider
18 : public base::RefCountedThreadSafe<VulkanContextProvider> { 18 : public base::RefCountedThreadSafe<VulkanContextProvider> {
19 public: 19 public:
20 virtual gpu::VulkanDeviceQueue* GetDeviceQueue() = 0; 20 virtual gpu::VulkanDeviceQueue* GetDeviceQueue() = 0;
21 21
22 virtual void SwapBuffers() = 0;
23
22 protected: 24 protected:
23 friend class base::RefCountedThreadSafe<VulkanContextProvider>; 25 friend class base::RefCountedThreadSafe<VulkanContextProvider>;
24 virtual ~VulkanContextProvider() {} 26 virtual ~VulkanContextProvider() {}
25 }; 27 };
26 28
27 } // namespace cc 29 } // namespace cc
28 30
29 #endif // CC_OUTPUT_VULKAN_CONTEXT_PROVIDER_H_ 31 #endif // CC_OUTPUT_VULKAN_CONTEXT_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698