Flutter Impeller
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 83 of file vulkan_screenshotter.mm.

85  : playground_(playground) {
86  FML_CHECK(playground_);
87 }

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 89 of file vulkan_screenshotter.mm.

91  {
92  return ReadTexture(aiks_context.GetContext(), texture);
93 }

References impeller::AiksContext::GetContext().


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