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