#include <test_metal_surface_impl.h>
Definition at line 16 of file test_metal_surface_impl.h.
◆ TestMetalSurfaceImpl() [1/2]
flutter::TestMetalSurfaceImpl::TestMetalSurfaceImpl |
( |
const TestMetalContext & |
test_metal_context, |
|
|
const SkISize & |
surface_size |
|
) |
| |
Definition at line 58 of file test_metal_surface_impl.mm.
60 : test_metal_context_(test_metal_context) {
62 FML_LOG(
ERROR) <<
"Size of test Metal surface was empty.";
63 return;
64 }
65 TestMetalContext::TextureInfo texture_info =
66 const_cast<TestMetalContext&>(test_metal_context_).CreateMetalTexture(surface_size);
67 Init(texture_info, surface_size);
68}
#define FML_LOG(severity)
◆ TestMetalSurfaceImpl() [2/2]
flutter::TestMetalSurfaceImpl::TestMetalSurfaceImpl |
( |
const TestMetalContext & |
test_metal_context, |
|
|
int64_t |
texture_id, |
|
|
const SkISize & |
surface_size |
|
) |
| |
Definition at line 49 of file test_metal_surface_impl.mm.
52 : test_metal_context_(test_metal_context) {
53 TestMetalContext::TextureInfo texture_info =
54 const_cast<TestMetalContext&
>(test_metal_context_).GetTextureInfo(
texture_id);
55 Init(texture_info, surface_size);
56}
◆ ~TestMetalSurfaceImpl()
flutter::TestMetalSurfaceImpl::~TestMetalSurfaceImpl |
( |
| ) |
|
|
overridedefault |
The documentation for this class was generated from the following files: