21CommandBufferVK::CommandBufferVK(
22 std::weak_ptr<const Context> context,
23 std::shared_ptr<CommandEncoderFactoryVK> encoder_factory)
24 : CommandBuffer(
std::move(context)),
25 encoder_factory_(
std::move(encoder_factory)) {}
27CommandBufferVK::~CommandBufferVK() =
default;
29void CommandBufferVK::SetLabel(
const std::string& label)
const {
31 encoder_factory_->SetLabel(label);
33 auto context = context_.lock();
34 if (!context || !encoder_) {
37 ContextVK::Cast(*context).SetDebugName(encoder_->GetCommandBuffer(), label);
41bool CommandBufferVK::IsValid()
const {
45const std::shared_ptr<CommandEncoderVK>& CommandBufferVK::GetEncoder() {
47 encoder_ = encoder_factory_->Create();
52bool CommandBufferVK::OnSubmitCommands(CompletionCallback
callback) {
56void CommandBufferVK::OnWaitUntilScheduled() {}
58std::shared_ptr<RenderPass> CommandBufferVK::OnCreateRenderPass(
60 auto context = context_.lock();
65 std::shared_ptr<RenderPassVK>(
new RenderPassVK(context,
69 if (!pass->IsValid()) {
75std::shared_ptr<BlitPass> CommandBufferVK::OnCreateBlitPass() {
79 auto pass = std::shared_ptr<BlitPassVK>(
new BlitPassVK(shared_from_this()));
80 if (!pass->IsValid()) {
86std::shared_ptr<ComputePass> CommandBufferVK::OnCreateComputePass() {
90 auto context = context_.lock();
95 std::shared_ptr<ComputePassVK>(
new ComputePassVK(context,
98 if (!pass->IsValid()) {
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback
#define FML_UNREACHABLE()
SK_API sk_sp< SkSurface > RenderTarget(GrRecordingContext *context, skgpu::Budgeted budgeted, const SkImageInfo &imageInfo, int sampleCount, GrSurfaceOrigin surfaceOrigin, const SkSurfaceProps *surfaceProps, bool shouldCreateWithMips=false, bool isProtected=false)