#include <metal_screenshotter.h>
Public Member Functions | |
| MetalScreenshotter () | |
| std::unique_ptr< MetalScreenshot > | MakeScreenshot (AiksContext &aiks_context, const Picture &picture, const ISize &size={300, 300}, bool scale_content=true) |
| PlaygroundImpl & | GetPlayground () |
Converts Pictures and DisplayLists to MetalScreenshots with the playground backend.
Definition at line 18 of file metal_screenshotter.h.
| impeller::testing::MetalScreenshotter::MetalScreenshotter | ( | ) |
Definition at line 16 of file metal_screenshotter.mm.
References impeller::PlaygroundImpl::Create(), and impeller::kMetal.
|
inline |
Definition at line 28 of file metal_screenshotter.h.
| std::unique_ptr< MetalScreenshot > impeller::testing::MetalScreenshotter::MakeScreenshot | ( | AiksContext & | aiks_context, |
| const Picture & | picture, | ||
| const ISize & | size = {300, 300}, |
||
| bool | scale_content = true |
||
| ) |
Definition at line 22 of file metal_screenshotter.mm.
References impeller::TSize< T >::height, impeller::Picture::ToImage(), impeller::TSize< T >::width, impeller::TPoint< T >::x, and impeller::TPoint< T >::y.