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

Unified Diff: cc/output/vulkan_in_process_context_provider.cc

Issue 2744973002: Remove enable_vulkan from build/config, and move it to the buildflag_header system. (Closed)
Patch Set: awww year Created 3 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/output/vulkan_in_process_context_provider.h ('k') | cc/surfaces/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/vulkan_in_process_context_provider.cc
diff --git a/cc/output/vulkan_in_process_context_provider.cc b/cc/output/vulkan_in_process_context_provider.cc
index 9d602c42450162bf5864e93e36b66e184f2fd4a4..f8a3b21025a10f6fac57162cbf263a65fdb47a92 100644
--- a/cc/output/vulkan_in_process_context_provider.cc
+++ b/cc/output/vulkan_in_process_context_provider.cc
@@ -3,17 +3,18 @@
// found in the LICENSE file.
#include "cc/output/vulkan_in_process_context_provider.h"
+#include "gpu/vulkan/features.h"
-#if defined(ENABLE_VULKAN)
+#if BUILDFLAG(ENABLE_VULKAN)
#include "gpu/vulkan/vulkan_device_queue.h"
#include "gpu/vulkan/vulkan_implementation.h"
-#endif // defined(ENABLE_VULKAN)
+#endif // BUILDFLAG(ENABLE_VULKAN)
namespace cc {
scoped_refptr<VulkanInProcessContextProvider>
VulkanInProcessContextProvider::Create() {
-#if defined(ENABLE_VULKAN)
+#if BUILDFLAG(ENABLE_VULKAN)
if (!gpu::VulkanSupported())
return nullptr;
@@ -28,7 +29,7 @@ VulkanInProcessContextProvider::Create() {
}
bool VulkanInProcessContextProvider::Initialize() {
-#if defined(ENABLE_VULKAN)
+#if BUILDFLAG(ENABLE_VULKAN)
DCHECK(!device_queue_);
std::unique_ptr<gpu::VulkanDeviceQueue> device_queue(
new gpu::VulkanDeviceQueue);
@@ -47,7 +48,7 @@ bool VulkanInProcessContextProvider::Initialize() {
}
void VulkanInProcessContextProvider::Destroy() {
-#if defined(ENABLE_VULKAN)
+#if BUILDFLAG(ENABLE_VULKAN)
if (device_queue_) {
device_queue_->Destroy();
device_queue_.reset();
@@ -56,7 +57,7 @@ void VulkanInProcessContextProvider::Destroy() {
}
gpu::VulkanDeviceQueue* VulkanInProcessContextProvider::GetDeviceQueue() {
-#if defined(ENABLE_VULKAN)
+#if BUILDFLAG(ENABLE_VULKAN)
return device_queue_.get();
#else
return nullptr;
« no previous file with comments | « cc/output/vulkan_in_process_context_provider.h ('k') | cc/surfaces/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698