8 #include "gtest/gtest.h"
12 #include "impeller/entity/contents/test/recording_render_pass.h"
24 auto contents = std::make_shared<CheckerboardContents>();
27 ASSERT_EQ(contents->GetCoverage(entity), std::nullopt);
31 auto contents = std::make_shared<CheckerboardContents>();
33 contents->SetSquareSize(10);
35 auto content_context = GetContentContext();
36 auto buffer = content_context->GetContext()->CreateCommandBuffer();
38 GetContentContext()->GetRenderTargetCache()->CreateOffscreenMSAA(
39 *content_context->GetContext(), {100, 100},
41 auto render_pass = buffer->CreateRenderPass(render_target);
42 auto recording_pass = std::make_shared<RecordingRenderPass>(
43 render_pass, GetContext(), render_target);
47 ASSERT_TRUE(recording_pass->GetCommands().empty());
48 ASSERT_TRUE(contents->Render(*content_context, entity, *recording_pass));
49 ASSERT_FALSE(recording_pass->GetCommands().empty());
52 recording_pass->EncodeCommands();
55 #endif // IMPELLER_DEBUG