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

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

Issue 1892303003: Added the Vulkan Context Provider implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: added include that was accidentally deleted 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
« no previous file with comments | « cc/output/output_surface.cc ('k') | cc/output/vulkan_in_process_context_provider.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 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_IN_PROCESS_CONTEXT_PROVIDER_H_ 5 #ifndef CC_OUTPUT_VULKAN_IN_PROCESS_CONTEXT_PROVIDER_H_
6 #define CC_OUTPUT_VULKAN_IN_PROCESS_CONTEXT_PROVIDER_H_ 6 #define CC_OUTPUT_VULKAN_IN_PROCESS_CONTEXT_PROVIDER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "cc/base/cc_export.h" 10 #include "cc/base/cc_export.h"
11 #include "cc/output/vulkan_context_provider.h" 11 #include "cc/output/vulkan_context_provider.h"
12 12
13 namespace gpu { 13 namespace gpu {
14 class VulkanDeviceQueue; 14 class VulkanDeviceQueue;
15 } 15 }
16 16
17 namespace cc { 17 namespace cc {
18 18
19 class CC_EXPORT VulkanInProcessContextProvider : public VulkanContextProvider { 19 class CC_EXPORT VulkanInProcessContextProvider
20 : NON_EXPORTED_BASE(public VulkanContextProvider) {
piman 2016/04/20 21:08:46 nit: let's export VulkanContextProvider too
David Yen 2016/04/20 21:12:24 Done.
20 public: 21 public:
21 static scoped_refptr<VulkanInProcessContextProvider> Create(); 22 static scoped_refptr<VulkanInProcessContextProvider> Create();
22 23
23 bool Initialize(); 24 bool Initialize();
24 void Destroy(); 25 void Destroy();
25 26
27 // VulkanContextProvider implementation
26 gpu::VulkanDeviceQueue* GetDeviceQueue() override; 28 gpu::VulkanDeviceQueue* GetDeviceQueue() override;
27 29
28 protected: 30 protected:
29 VulkanInProcessContextProvider(); 31 VulkanInProcessContextProvider();
30 ~VulkanInProcessContextProvider() override; 32 ~VulkanInProcessContextProvider() override;
31 33
32 private: 34 private:
35 #if defined(ENABLE_VULKAN)
33 std::unique_ptr<gpu::VulkanDeviceQueue> device_queue_; 36 std::unique_ptr<gpu::VulkanDeviceQueue> device_queue_;
37 #endif
38
39 DISALLOW_COPY_AND_ASSIGN(VulkanInProcessContextProvider);
34 }; 40 };
35 41
36 } // namespace cc 42 } // namespace cc
37 43
38 #endif // CC_OUTPUT_VULKAN_IN_PROCESS_CONTEXT_PROVIDER_H_ 44 #endif // CC_OUTPUT_VULKAN_IN_PROCESS_CONTEXT_PROVIDER_H_
OLDNEW
« no previous file with comments | « cc/output/output_surface.cc ('k') | cc/output/vulkan_in_process_context_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698