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

Unified Diff: cc/output/vulkan_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, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/DEPS ('k') | cc/output/vulkan_in_process_context_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/vulkan_context_provider.h
diff --git a/cc/output/vulkan_context_provider.h b/cc/output/vulkan_context_provider.h
new file mode 100644
index 0000000000000000000000000000000000000000..6b50128cdaabc30abf4a094723335da09fc15a4e
--- /dev/null
+++ b/cc/output/vulkan_context_provider.h
@@ -0,0 +1,29 @@
+// Copyright (c) 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CC_OUTPUT_VULKAN_CONTEXT_PROVIDER_H_
+#define CC_OUTPUT_VULKAN_CONTEXT_PROVIDER_H_
+
+#include "base/memory/ref_counted.h"
+
+namespace gpu {
+class VulkanDeviceQueue;
+}
+
+namespace cc {
+
+// The VulkanContextProvider groups sharing of vulkan objects synchronously.
+class VulkanContextProvider
+ : public base::RefCountedThreadSafe<VulkanContextProvider> {
+ public:
+ virtual gpu::VulkanDeviceQueue* GetDeviceQueue() = 0;
+
+ protected:
+ friend class base::RefCountedThreadSafe<VulkanContextProvider>;
+ virtual ~VulkanContextProvider() {}
+};
+
+} // namespace cc
+
+#endif // CC_OUTPUT_VULKAN_CONTEXT_PROVIDER_H_
« no previous file with comments | « cc/DEPS ('k') | cc/output/vulkan_in_process_context_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698