77#include < memory>
88#include < sstream>
99
10- #include " impeller/base/strings.h"
1110#include " impeller/entity/entity.h"
1211#include " impeller/renderer/command_buffer.h"
1312#include " impeller/renderer/formats.h"
@@ -309,7 +308,6 @@ bool ContentContext::IsValid() const {
309308}
310309
311310std::shared_ptr<Texture> ContentContext::MakeSubpass (
312- const std::string& label,
313311 ISize texture_size,
314312 const SubpassCallback& subpass_callback,
315313 bool msaa_enabled) const {
@@ -319,11 +317,11 @@ std::shared_ptr<Texture> ContentContext::MakeSubpass(
319317 if (context->GetDeviceCapabilities ().SupportsOffscreenMSAA () &&
320318 msaa_enabled) {
321319 subpass_target = RenderTarget::CreateOffscreenMSAA (
322- *context, texture_size, SPrintF ( " %s Offscreen" , label. c_str ()) ,
320+ *context, texture_size, " Contents Offscreen MSAA " ,
323321 RenderTarget::kDefaultColorAttachmentConfigMSAA , std::nullopt );
324322 } else {
325323 subpass_target = RenderTarget::CreateOffscreen (
326- *context, texture_size, SPrintF ( " %s Offscreen" , label. c_str ()) ,
324+ *context, texture_size, " Contents Offscreen" ,
327325 RenderTarget::kDefaultColorAttachmentConfig , std::nullopt );
328326 }
329327 auto subpass_texture = subpass_target.GetRenderTargetTexture ();
@@ -332,7 +330,7 @@ std::shared_ptr<Texture> ContentContext::MakeSubpass(
332330 }
333331
334332 auto sub_command_buffer = context->CreateCommandBuffer ();
335- sub_command_buffer->SetLabel (SPrintF ( " %s CommandBuffer " , label. c_str ()) );
333+ sub_command_buffer->SetLabel (" Offscreen Contents Command Buffer " );
336334 if (!sub_command_buffer) {
337335 return nullptr ;
338336 }
@@ -341,7 +339,7 @@ std::shared_ptr<Texture> ContentContext::MakeSubpass(
341339 if (!sub_renderpass) {
342340 return nullptr ;
343341 }
344- sub_renderpass->SetLabel (SPrintF ( " %s RenderPass " , label. c_str ()) );
342+ sub_renderpass->SetLabel (" OffscreenContentsPass " );
345343
346344 if (!subpass_callback (*this , *sub_renderpass)) {
347345 return nullptr ;
0 commit comments