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

104 : playground_(playground) {
105 FML_CHECK(playground_);
106 }

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

110 {
111 return ReadTexture(aiks_context.GetContext(), texture);
112 }

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