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

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

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

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

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