Creates a MTLTexture backed SkSurface and context that can be used to render to in unit-tests.
More...
#include <test_metal_surface.h>
Creates a MTLTexture backed SkSurface and context that can be used to render to in unit-tests.
Definition at line 21 of file test_metal_surface.h.
◆ ~TestMetalSurface()
| flutter::testing::TestMetalSurface::~TestMetalSurface |
( |
| ) |
|
|
virtualdefault |
◆ TestMetalSurface()
| flutter::testing::TestMetalSurface::TestMetalSurface |
( |
| ) |
|
|
protecteddefault |
◆ Create() [1/2]
◆ Create() [2/2]
◆ GetGrContext()
| sk_sp< GrDirectContext > flutter::testing::TestMetalSurface::GetGrContext |
( |
| ) |
const |
|
virtual |
◆ GetRasterSurfaceSnapshot()
| sk_sp< SkImage > flutter::testing::TestMetalSurface::GetRasterSurfaceSnapshot |
( |
| ) |
|
|
virtual |
Definition at line 47 of file test_metal_surface.mm.
47 {
48 return impl_ ? impl_->GetRasterSurfaceSnapshot() : nullptr;
49}
◆ GetSurface()
| sk_sp< SkSurface > flutter::testing::TestMetalSurface::GetSurface |
( |
| ) |
const |
|
virtual |
◆ GetTextureInfo()
Definition at line 51 of file test_metal_surface.mm.
51 {
52 return impl_ ? impl_->GetTextureInfo() : TestMetalContext::TextureInfo();
53}
◆ IsValid()
| bool flutter::testing::TestMetalSurface::IsValid |
( |
| ) |
const |
|
virtual |
◆ PlatformSupportsMetal()
| bool flutter::testing::TestMetalSurface::PlatformSupportsMetal |
( |
| ) |
|
|
static |
The documentation for this class was generated from the following files: