Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
Loading...
Searching...
No Matches
impeller::testing::VulkanGoldenScreenshotter Class Reference

#include <vulkan_golden_screenshotter.h>

Inheritance diagram for impeller::testing::VulkanGoldenScreenshotter:
impeller::testing::GoldenScreenshotter

Public Member Functions

 VulkanGoldenScreenshotter (const std::unique_ptr< PlaygroundImpl > &playground)
 
 ~VulkanGoldenScreenshotter ()
 
std::unique_ptr< ScreenshotMakeScreenshot (const AiksContext &aiks_context, const std::shared_ptr< Texture > &texture) override
 
PlaygroundImplGetPlayground () override
 
- Public Member Functions inherited from impeller::testing::GoldenScreenshotter
virtual ~GoldenScreenshotter ()=default
 

Detailed Description

Converts Pictures and DisplayLists to MetalScreenshots with the playground backend.

Definition at line 16 of file vulkan_golden_screenshotter.h.

Constructor & Destructor Documentation

◆ VulkanGoldenScreenshotter()

impeller::testing::VulkanGoldenScreenshotter::VulkanGoldenScreenshotter ( const std::unique_ptr< PlaygroundImpl > &  playground)
explicit

Definition at line 15 of file vulkan_golden_screenshotter.mm.

17 : playground_(playground) {
18 FML_CHECK(playground_);
19}
#define FML_CHECK(condition)
Definition logging.h:104

References FML_CHECK.

◆ ~VulkanGoldenScreenshotter()

impeller::testing::VulkanGoldenScreenshotter::~VulkanGoldenScreenshotter ( )
default

Member Function Documentation

◆ GetPlayground()

PlaygroundImpl & impeller::testing::VulkanGoldenScreenshotter::GetPlayground ( )
overridevirtual

Implements impeller::testing::GoldenScreenshotter.

Definition at line 30 of file vulkan_golden_screenshotter.mm.

30 {
31 return *playground_;
32}

◆ MakeScreenshot()

std::unique_ptr< Screenshot > impeller::testing::VulkanGoldenScreenshotter::MakeScreenshot ( const AiksContext aiks_context,
const std::shared_ptr< Texture > &  texture 
)
overridevirtual

Implements impeller::testing::GoldenScreenshotter.

Definition at line 23 of file vulkan_golden_screenshotter.mm.

25 {
26 return VulkanScreenshotter::MakeScreenshot(aiks_context.GetContext(),
27 texture);
28}
static std::unique_ptr< Screenshot > MakeScreenshot(const std::shared_ptr< Context > &context, const std::shared_ptr< Texture > &texture)
FlTexture * texture

References impeller::AiksContext::GetContext(), impeller::testing::VulkanScreenshotter::MakeScreenshot(), and texture.


The documentation for this class was generated from the following files: