#include <screenshotter.h>
Public Member Functions | |
| virtual | ~Screenshotter ()=default |
| virtual std::unique_ptr< Screenshot > | MakeScreenshot (const AiksContext &aiks_context, const std::shared_ptr< Texture > &texture)=0 |
Static Public Member Functions | |
| static std::unique_ptr< Screenshot > | MakeScreenshot (std::shared_ptr< Context > &context, const std::shared_ptr< Texture > &texture) |
Converts Pictures and DisplayLists to MetalScreenshots with the playground backend.
Definition at line 16 of file screenshotter.h.
|
virtualdefault |
|
pure virtual |
Implemented in impeller::testing::MetalScreenshotter, and impeller::testing::VulkanScreenshotter.
|
static |
Definition at line 33 of file screenshotter.cc.
References context, impeller::Context::kMetal, impeller::Context::kOpenGLES, impeller::Context::kVulkan, and texture.
Referenced by impeller::DlPlayground::MakeScreenshot(), flutter::testing::DlSurfaceInstanceImpeller::SnapshotToPixelData(), and impeller::testing::TEST_F().