commit | 3702c86479038b39de620218d61823ed28a5a46e | [log] [tgz] |
---|---|---|
author | Nicolette Prevost <nicolettep@google.com> | Mon Feb 06 15:44:33 2023 -0500 |
committer | SkCQ <skcq-be@skia-corp.google.com.iam.gserviceaccount.com> | Mon Feb 06 21:22:43 2023 +0000 |
tree | 1306564a916263f34163eb183ca9a5546ea6cee4 | |
parent | 3301def78262996b03cb8d18e0b59aa215e386e3 [diff] |
[graphite] Define freeGpuData() in VulkanTexture class A prior CL (https://skia-review.googlesource.com/c/skia/+/634499) included the VulkanTexture class for the first time, exposing an error within some Debian bots where VulkanTexture failed to define an override to the purely virtual Resource::freeGpuData() method. Change-Id: I2307afc80d0b8e0abd5a4ab4c61429e48e2cc902 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/638980 Reviewed-by: Jim Van Verth <jvanverth@google.com> Commit-Queue: Nicolette Prevost <nicolettep@google.com>
diff --git a/src/gpu/graphite/vk/VulkanTexture.cpp b/src/gpu/graphite/vk/VulkanTexture.cpp index fcdc270..3ea94df 100644 --- a/src/gpu/graphite/vk/VulkanTexture.cpp +++ b/src/gpu/graphite/vk/VulkanTexture.cpp
@@ -176,4 +176,9 @@ , fImage(image) , fMemoryAlloc(alloc) {} +void VulkanTexture::freeGpuData() { + auto sharedContext = static_cast<const VulkanSharedContext*>(this->sharedContext()); + skgpu::VulkanMemory::FreeImageMemory(sharedContext->memoryAllocator(), fMemoryAlloc); +} + } // namespace skgpu::graphite