#include <vulkan_screenshotter.h>
Public Member Functions | |
VulkanScreenshotter (const std::unique_ptr< PlaygroundImpl > &playground) | |
std::unique_ptr< Screenshot > | MakeScreenshot (AiksContext &aiks_context, const Picture &picture, const ISize &size={300, 300}, bool scale_content=true) override |
PlaygroundImpl & | GetPlayground () override |
![]() | |
virtual | ~Screenshotter ()=default |
Converts Picture
s and DisplayList
s to MetalScreenshot
s with the playground backend.
Definition at line 19 of file vulkan_screenshotter.h.
|
explicit |
Definition at line 103 of file vulkan_screenshotter.mm.
|
inlineoverridevirtual |
Implements impeller::testing::Screenshotter.
Definition at line 30 of file vulkan_screenshotter.h.
|
overridevirtual |
Implements impeller::testing::Screenshotter.
Definition at line 109 of file vulkan_screenshotter.mm.
References impeller::AiksContext::GetContext(), impeller::TSize< T >::height, impeller::Picture::ToImage(), impeller::TSize< T >::width, impeller::TPoint< T >::x, and impeller::TPoint< T >::y.