#include <metal_screenshotter.h>
Public Member Functions | |
| MetalScreenshotter (bool enable_wide_gamut) | |
| std::unique_ptr< Screenshot > | MakeScreenshot (AiksContext &aiks_context, const Picture &picture, const ISize &size={300, 300}, bool scale_content=true) override |
| PlaygroundImpl & | GetPlayground () override |
Public Member Functions inherited from impeller::testing::Screenshotter | |
| virtual | ~Screenshotter ()=default |
Converts Pictures and DisplayLists to MetalScreenshots with the playground backend.
Definition at line 18 of file metal_screenshotter.h.
|
explicit |
Definition at line 16 of file metal_screenshotter.mm.
References impeller::PlaygroundImpl::Create(), impeller::PlaygroundSwitches::enable_wide_gamut, and impeller::kMetal.
|
inlineoverridevirtual |
Implements impeller::testing::Screenshotter.
Definition at line 28 of file metal_screenshotter.h.
|
overridevirtual |
Implements impeller::testing::Screenshotter.
Definition at line 23 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.