#include <embedder_test_context_metal.h>
◆ NextDrawableCallback
◆ PresentCallback
◆ TestExternalTextureCallback
◆ EmbedderTestContextMetal()
flutter::testing::EmbedderTestContextMetal::EmbedderTestContextMetal |
( |
std::string |
assets_path = "" | ) |
|
|
explicit |
Definition at line 17 of file embedder_test_context_metal.cc.
19 metal_context_ = std::make_unique<TestMetalContext>();
20}
EmbedderTestContext(std::string assets_path="")
◆ ~EmbedderTestContextMetal()
flutter::testing::EmbedderTestContextMetal::~EmbedderTestContextMetal |
( |
| ) |
|
|
override |
◆ GetContextType()
◆ GetNextDrawable()
Definition at line 91 of file embedder_test_context_metal.cc.
92 {
93 if (next_drawable_callback_ != nullptr) {
94 return next_drawable_callback_(frame_info);
95 }
96
97 auto texture_info = metal_surface_->GetTextureInfo();
100 texture.texture_id = texture_info.texture_id;
104}
const void * FlutterMetalTextureHandle
Alias for id<MTLTexture>.
◆ GetSurfacePresentCount()
size_t flutter::testing::EmbedderTestContextMetal::GetSurfacePresentCount |
( |
| ) |
const |
|
overridevirtual |
◆ GetTestMetalContext()
TestMetalContext * flutter::testing::EmbedderTestContextMetal::GetTestMetalContext |
( |
| ) |
|
◆ GetTestMetalSurface()
TestMetalSurface * flutter::testing::EmbedderTestContextMetal::GetTestMetalSurface |
( |
| ) |
|
◆ PopulateExternalTexture()
bool flutter::testing::EmbedderTestContextMetal::PopulateExternalTexture |
( |
int64_t |
texture_id, |
|
|
size_t |
w, |
|
|
size_t |
h, |
|
|
FlutterMetalExternalTexture * |
output |
|
) |
| |
Definition at line 74 of file embedder_test_context_metal.cc.
78 {
79 if (external_texture_frame_callback_ != nullptr) {
81 } else {
82 return false;
83 }
84}
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder h
◆ Present()
bool flutter::testing::EmbedderTestContextMetal::Present |
( |
int64_t |
texture_id | ) |
|
Definition at line 59 of file embedder_test_context_metal.cc.
59 {
61 [&]() { return metal_surface_->GetRasterSurfaceSnapshot(); });
62 present_count_++;
63 if (present_callback_ != nullptr) {
65 }
67}
void FireRootSurfacePresentCallbackIfPresent(const std::function< sk_sp< SkImage >(void)> &image_callback)
◆ SetExternalTextureCallback()
void flutter::testing::EmbedderTestContextMetal::SetExternalTextureCallback |
( |
TestExternalTextureCallback |
external_texture_frame_callback | ) |
|
◆ SetNextDrawableCallback()
void flutter::testing::EmbedderTestContextMetal::SetNextDrawableCallback |
( |
NextDrawableCallback |
next_drawable_callback | ) |
|
◆ SetPresentCallback()
void flutter::testing::EmbedderTestContextMetal::SetPresentCallback |
( |
PresentCallback |
present_callback | ) |
|
◆ SetupCompositor()
void flutter::testing::EmbedderTestContextMetal::SetupCompositor |
( |
| ) |
|
|
overridevirtual |
◆ EmbedderConfigBuilder
The documentation for this class was generated from the following files: