| Flutter Impeller |

Public Member Functions | List of all members
impeller::testing::VulkanScreenshotter Class Reference

`#include <vulkan_screenshotter.h>`

Inheritance diagram for impeller::testing::VulkanScreenshotter:

## Public Member Functions
| VulkanScreenshotter (const std::unique_ptr< PlaygroundImpl > &playground)
std::unique_ptr< Screenshot > | MakeScreenshot (AiksContext &aiks_context, const std::shared_ptr< Texture > texture) override
PlaygroundImpl & | GetPlayground () override
Public Member Functions inherited from impeller::testing::Screenshotter
virtual | ~Screenshotter ()=default

## Detailed Description

Converts `Picture`s and `DisplayList`s to `MetalScreenshot`s 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 | ( |  | ) |
| inline override virtual

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
| ) |  |
| override virtual

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:

- impeller/golden_tests/vulkan_screenshotter.h
- impeller/golden_tests/vulkan_screenshotter.mm