We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0d7b58 commit b515f82Copy full SHA for b515f82
engine/src/flutter/lib/ui/painting/image_encoding_impeller.cc
@@ -165,6 +165,12 @@ void ImageEncodingImpeller::ConvertDlImageToSkImage(
165
texture->GetTextureDescriptor().GetByteSizeOfBaseMipLevel();
166
auto buffer =
167
impeller_context->GetResourceAllocator()->CreateBuffer(buffer_desc);
168
+ if (!buffer) {
169
+ encode_task(fml::Status(fml::StatusCode::kUnimplemented,
170
+ "Failed to allocate destination buffer."));
171
+ return;
172
+ }
173
+
174
auto command_buffer = impeller_context->CreateCommandBuffer();
175
command_buffer->SetLabel("BlitTextureToBuffer Command Buffer");
176
auto pass = command_buffer->CreateBlitPass();
0 commit comments