#include <dl_test_surface_provider.h>
Definition at line 57 of file dl_test_surface_provider.h.
◆ BackendType
◆ PixelFormat
◆ ~DlSurfaceProvider()
| virtual flutter::testing::DlSurfaceProvider::~DlSurfaceProvider |
( |
| ) |
|
|
virtualdefault |
◆ DlSurfaceProvider()
| flutter::testing::DlSurfaceProvider::DlSurfaceProvider |
( |
| ) |
|
|
protecteddefault |
◆ backend_name()
| virtual const std::string flutter::testing::DlSurfaceProvider::backend_name |
( |
| ) |
const |
|
pure virtual |
◆ backend_type()
| virtual BackendType flutter::testing::DlSurfaceProvider::backend_type |
( |
| ) |
const |
|
pure virtual |
◆ BackendName()
| std::string flutter::testing::DlSurfaceProvider::BackendName |
( |
BackendType |
type | ) |
|
|
static |
◆ Create()
Definition at line 23 of file dl_test_surface_provider.cc.
24 {
27 return CreateSoftware();
29 return CreateOpenGL();
31 return CreateMetal();
32 }
33}
virtual BackendType backend_type() const =0
References backend_type(), kMetalBackend, kOpenGlBackend, and kSoftwareBackend.
Referenced by flutter::testing::BM_DrawArc(), flutter::testing::BM_DrawCircle(), flutter::testing::BM_DrawDRRect(), flutter::testing::BM_DrawImage(), flutter::testing::BM_DrawImageNine(), flutter::testing::BM_DrawImageRect(), flutter::testing::BM_DrawLine(), flutter::testing::BM_DrawOval(), flutter::testing::BM_DrawPath(), flutter::testing::BM_DrawPoints(), flutter::testing::BM_DrawRect(), flutter::testing::BM_DrawRRect(), flutter::testing::BM_DrawShadow(), flutter::testing::BM_DrawTextBlob(), flutter::testing::BM_DrawVertices(), flutter::testing::BM_SaveLayer(), and flutter::testing::CanvasCompareTester::GetProvider().
◆ GetPrimarySurface()
| virtual std::shared_ptr< DlSurfaceInstance > flutter::testing::DlSurfaceProvider::GetPrimarySurface |
( |
| ) |
const |
|
pure virtual |
◆ ImpellerSnapshot()
| virtual sk_sp< DlPixelData > flutter::testing::DlSurfaceProvider::ImpellerSnapshot |
( |
const sk_sp< DisplayList > & |
list, |
|
|
int |
width, |
|
|
int |
height |
|
) |
| const |
|
inlinevirtual |
◆ InitializeSurface()
◆ MakeImpellerImage()
| virtual sk_sp< DlImage > flutter::testing::DlSurfaceProvider::MakeImpellerImage |
( |
const sk_sp< DisplayList > & |
list, |
|
|
int |
width, |
|
|
int |
height |
|
) |
| const |
|
inlinevirtual |
◆ MakeInfo()
| static SkImageInfo flutter::testing::DlSurfaceProvider::MakeInfo |
( |
PixelFormat |
format, |
|
|
int |
w, |
|
|
int |
h |
|
) |
| |
|
inlinestatic |
◆ MakeOffscreenSurface()
◆ Snapshot()
| bool flutter::testing::DlSurfaceProvider::Snapshot |
( |
std::string & |
filename | ) |
const |
|
virtual |
Definition at line 35 of file dl_test_surface_provider.cc.
35 {
36#ifdef BENCHMARKS_NO_SNAPSHOT
37 return false;
38#else
41 return false;
42 }
43 auto raster =
image->makeRasterImage(
nullptr);
44 if (!raster) {
45 return false;
46 }
47 auto data = SkPngEncoder::Encode(
nullptr, raster.get(), {});
49 return false;
50 }
54#endif
55}
virtual std::shared_ptr< DlSurfaceInstance > GetPrimarySurface() const =0
FlutterVulkanImage * image
fml::UniqueFD OpenFixturesDirectory()
Opens the fixtures directory for the unit-test harness.
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot data
bool WriteAtomically(const fml::UniqueFD &base_directory, const char *file_name, const Mapping &mapping)
References flutter::data, GetPrimarySurface(), image, and flutter::testing::OpenFixturesDirectory().
◆ supports()
| virtual bool flutter::testing::DlSurfaceProvider::supports |
( |
PixelFormat |
format | ) |
const |
|
pure virtual |
◆ supports_impeller()
| virtual bool flutter::testing::DlSurfaceProvider::supports_impeller |
( |
| ) |
const |
|
inlinevirtual |
The documentation for this class was generated from the following files: