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

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

Issue 1829163003: Added initial implementation of the Vulkan Context Provider. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@vk_surface_patch
Patch Set: Block off vulkan_cc with enable_vulkan (not relevant in future patch) 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/vulkan_context_provider.h ('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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CC_OUTPUT_VULKAN_IN_PROCESS_CONTEXT_PROVIDER_H_
6 #define CC_OUTPUT_VULKAN_IN_PROCESS_CONTEXT_PROVIDER_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include "cc/base/cc_export.h"
10 #include "cc/output/vulkan_context_provider.h"
11
12 namespace gpu {
13 class VulkanDeviceQueue;
14 }
15
16 namespace cc {
17
18 class CC_EXPORT VulkanInProcessContextProvider : public VulkanContextProvider {
19 public:
20 static scoped_refptr<VulkanInProcessContextProvider> Create();
21
22 bool Initialize();
23 void Destroy();
24
25 gpu::VulkanDeviceQueue* GetDeviceQueue() override;
26
27 protected:
28 VulkanInProcessContextProvider();
29 ~VulkanInProcessContextProvider() override;
30
31 private:
32 scoped_ptr<gpu::VulkanDeviceQueue> device_queue_;
33 };
34
35 } // namespace cc
36
37 #endif // CC_OUTPUT_VULKAN_IN_PROCESS_CONTEXT_PROVIDER_H_
OLDNEW
« no previous file with comments | « cc/output/vulkan_context_provider.h ('k') | cc/output/vulkan_in_process_context_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698