Flutter Engine
 
Loading...
Searching...
No Matches
impeller::testing::VulkanScreenshotter Class Reference

#include <vulkan_screenshotter.h>

Inheritance diagram for impeller::testing::VulkanScreenshotter:
impeller::testing::Screenshotter

Public Member Functions

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

Detailed Description

Converts Pictures and DisplayLists to MetalScreenshots with the playground backend.

Definition at line 17 of file vulkan_screenshotter.h.

Constructor & Destructor Documentation

◆ VulkanScreenshotter()

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

Definition at line 84 of file vulkan_screenshotter.mm.

86 : playground_(playground) {
87 FML_CHECK(playground_);
88}
#define FML_CHECK(condition)
Definition logging.h:104

References FML_CHECK.

Member Function Documentation

◆ GetPlayground()

PlaygroundImpl & impeller::testing::VulkanScreenshotter::GetPlayground ( )
inlineoverridevirtual

Implements impeller::testing::Screenshotter.

Definition at line 26 of file vulkan_screenshotter.h.

26{ return *playground_; }

◆ MakeScreenshot()

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

Implements impeller::testing::Screenshotter.

Definition at line 90 of file vulkan_screenshotter.mm.

92 {
93 return ReadTexture(aiks_context.GetContext(), texture);
94}
FlTexture * texture

References impeller::AiksContext::GetContext(), and texture.


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