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 20 of file test_metal_surface.h.
◆ ~TestMetalSurface()
flutter::TestMetalSurface::~TestMetalSurface |
( |
| ) |
|
|
virtualdefault |
◆ TestMetalSurface()
flutter::TestMetalSurface::TestMetalSurface |
( |
| ) |
|
|
protecteddefault |
◆ Create() [1/2]
◆ Create() [2/2]
Definition at line 18 of file test_metal_surface.cc.
20 {
21 return std::make_unique<TestMetalSurfaceImpl>(test_metal_context,
22 surface_size);
23}
◆ GetGrContext()
◆ GetRasterSurfaceSnapshot()
sk_sp< SkImage > flutter::TestMetalSurface::GetRasterSurfaceSnapshot |
( |
| ) |
|
|
virtual |
Definition at line 49 of file test_metal_surface.cc.
49 {
50 return impl_ ? impl_->GetRasterSurfaceSnapshot() : nullptr;
51}
◆ GetSurface()
◆ GetTextureInfo()
Definition at line 53 of file test_metal_surface.cc.
53 {
54 return impl_ ? impl_->GetTextureInfo() : TestMetalContext::TextureInfo();
55}
◆ IsValid()
bool flutter::TestMetalSurface::IsValid |
( |
| ) |
const |
|
virtual |
◆ PlatformSupportsMetal()
bool flutter::TestMetalSurface::PlatformSupportsMetal |
( |
| ) |
|
|
static |
The documentation for this class was generated from the following files: