Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
Loading...
Searching...
No Matches
impeller::testing::Screenshotter Class Referenceabstract

#include <screenshotter.h>

Inheritance diagram for impeller::testing::Screenshotter:
impeller::testing::MetalScreenshotter impeller::testing::VulkanScreenshotter

Public Member Functions

virtual ~Screenshotter ()=default
 
virtual std::unique_ptr< ScreenshotMakeScreenshot (const AiksContext &aiks_context, const std::shared_ptr< Texture > &texture)=0
 

Static Public Member Functions

static std::unique_ptr< ScreenshotMakeScreenshot (std::shared_ptr< Context > &context, const std::shared_ptr< Texture > &texture)
 

Detailed Description

Converts Pictures and DisplayLists to MetalScreenshots with the playground backend.

Definition at line 16 of file screenshotter.h.

Constructor & Destructor Documentation

◆ ~Screenshotter()

virtual impeller::testing::Screenshotter::~Screenshotter ( )
virtualdefault

Member Function Documentation

◆ MakeScreenshot() [1/2]

virtual std::unique_ptr< Screenshot > impeller::testing::Screenshotter::MakeScreenshot ( const AiksContext aiks_context,
const std::shared_ptr< Texture > &  texture 
)
pure virtual

◆ MakeScreenshot() [2/2]

std::unique_ptr< Screenshot > impeller::testing::Screenshotter::MakeScreenshot ( std::shared_ptr< Context > &  context,
const std::shared_ptr< Texture > &  texture 
)
static

Definition at line 33 of file screenshotter.cc.

35 {
36 if (!context || !texture) {
37 return nullptr;
38 }
39 switch (context->GetBackendType()) {
41 return MakeMetalScreenshot(context, texture);
42
44 return MakeOpenGLScreenshot(context, texture);
45
47 return MakeVulkanScreenshot(context, texture);
48 }
49}
FlTexture * texture
std::shared_ptr< ContextGLES > context

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().


The documentation for this class was generated from the following files: