forked from firka/flutter
Manual roll of Skia from 971c342c3030 to 280ac8882cff (flutter/engine#38257)
This roll changed a VulkanMemoryAllocator API
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
Signature: 734f452db823000268dff4a6e6d2e13e
|
||||
Signature: b1c69055420e97d4bd0f5d5d85ca9776
|
||||
|
||||
UNUSED LICENSES:
|
||||
|
||||
|
||||
@@ -259,16 +259,12 @@ VkResult FlutterSkiaVulkanMemoryAllocator::invalidateMemory(
|
||||
return vmaInvalidateAllocation(allocator_, allocation, offset, size);
|
||||
}
|
||||
|
||||
uint64_t FlutterSkiaVulkanMemoryAllocator::totalUsedMemory() const {
|
||||
std::pair<uint64_t, uint64_t>
|
||||
FlutterSkiaVulkanMemoryAllocator::totalAllocatedAndUsedMemory() const {
|
||||
VmaTotalStatistics stats;
|
||||
vmaCalculateStatistics(allocator_, &stats);
|
||||
return stats.total.statistics.allocationBytes;
|
||||
}
|
||||
|
||||
uint64_t FlutterSkiaVulkanMemoryAllocator::totalAllocatedMemory() const {
|
||||
VmaTotalStatistics stats;
|
||||
vmaCalculateStatistics(allocator_, &stats);
|
||||
return stats.total.statistics.blockBytes;
|
||||
return {stats.total.statistics.blockBytes,
|
||||
stats.total.statistics.allocationBytes};
|
||||
}
|
||||
|
||||
} // namespace flutter
|
||||
|
||||
@@ -48,8 +48,7 @@ class FlutterSkiaVulkanMemoryAllocator : public skgpu::VulkanMemoryAllocator {
|
||||
VkDeviceSize offset,
|
||||
VkDeviceSize size) override;
|
||||
|
||||
uint64_t totalUsedMemory() const override;
|
||||
uint64_t totalAllocatedMemory() const override;
|
||||
std::pair<uint64_t, uint64_t> totalAllocatedAndUsedMemory() const override;
|
||||
|
||||
private:
|
||||
FlutterSkiaVulkanMemoryAllocator(
|
||||
|
||||
Reference in New Issue
Block a user