Commit 02948309 authored by Saman Sami's avatar Saman Sami Committed by Commit Bot

Remove const_cast from VulkanInProcessContextProvider

Skia's API is fixed to take be compatible with a const
VkPhysicalDeviceFeatures.

Change-Id: I5a38c1aeeace1788b1b46914c2201e56013bf6f3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1650031
Auto-Submit: Saman Sami <samans@chromium.org>
Reviewed-by: default avatarAntoine Labour <piman@chromium.org>
Commit-Queue: Saman Sami <samans@chromium.org>
Cr-Commit-Position: refs/heads/master@{#667295}
parent a8ac1fbc
...@@ -80,10 +80,7 @@ bool VulkanInProcessContextProvider::Initialize() { ...@@ -80,10 +80,7 @@ bool VulkanInProcessContextProvider::Initialize() {
device_extensions.size(), device_extensions.data()); device_extensions.size(), device_extensions.data());
backend_context.fVkExtensions = &gr_extensions; backend_context.fVkExtensions = &gr_extensions;
// TODO(samans): Get rid of the const_cast once GrVkBackendTexture is updated backend_context.fDeviceFeatures = &device_queue_->enabled_device_features();
// to take a const value.
backend_context.fDeviceFeatures = const_cast<VkPhysicalDeviceFeatures*>(
&device_queue_->enabled_device_features());
backend_context.fGetProc = get_proc; backend_context.fGetProc = get_proc;
gr_context_ = GrContext::MakeVulkan(backend_context); gr_context_ = GrContext::MakeVulkan(backend_context);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment