[Impeller] Add Vulkan allocator traces. (flutter/engine#43215)
I suspect this is where we're blocking on the texture uploads right now.
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
#include <memory>
|
||||
|
||||
#include "flutter/fml/memory/ref_ptr.h"
|
||||
#include "flutter/fml/trace_event.h"
|
||||
#include "impeller/core/formats.h"
|
||||
#include "impeller/renderer/backend/vulkan/device_buffer_vk.h"
|
||||
#include "impeller/renderer/backend/vulkan/formats_vk.h"
|
||||
@@ -327,6 +328,7 @@ class AllocatedTextureSourceVK final : public TextureSourceVK {
|
||||
// |Allocator|
|
||||
std::shared_ptr<Texture> AllocatorVK::OnCreateTexture(
|
||||
const TextureDescriptor& desc) {
|
||||
TRACE_EVENT0("impeller", "AllocatorVK::OnCreateTexture");
|
||||
if (!IsValid()) {
|
||||
return nullptr;
|
||||
}
|
||||
@@ -348,6 +350,7 @@ std::shared_ptr<Texture> AllocatorVK::OnCreateTexture(
|
||||
// |Allocator|
|
||||
std::shared_ptr<DeviceBuffer> AllocatorVK::OnCreateBuffer(
|
||||
const DeviceBufferDescriptor& desc) {
|
||||
TRACE_EVENT0("impeller", "AllocatorVK::OnCreateBuffer");
|
||||
vk::BufferCreateInfo buffer_info;
|
||||
buffer_info.usage = vk::BufferUsageFlagBits::eVertexBuffer |
|
||||
vk::BufferUsageFlagBits::eIndexBuffer |
|
||||
|
||||
Reference in New Issue
Block a user