#include <embedder_test_context_metal.h>
Public Types | |
| using | TestExternalTextureCallback = std::function< bool(int64_t texture_id, size_t w, size_t h, FlutterMetalExternalTexture *output)> |
| using | NextDrawableCallback = std::function< FlutterMetalTexture(const FlutterFrameInfo *frame_info)> |
| using | PresentCallback = std::function< bool(int64_t texture_id)> |
Definition at line 15 of file embedder_test_context_metal.h.
| using flutter::testing::EmbedderTestContextMetal::NextDrawableCallback = std::function<FlutterMetalTexture(const FlutterFrameInfo* frame_info)> |
Definition at line 23 of file embedder_test_context_metal.h.
| using flutter::testing::EmbedderTestContextMetal::PresentCallback = std::function<bool(int64_t texture_id)> |
Definition at line 26 of file embedder_test_context_metal.h.
| using flutter::testing::EmbedderTestContextMetal::TestExternalTextureCallback = std::function<bool(int64_t texture_id, size_t w, size_t h, FlutterMetalExternalTexture* output)> |
Definition at line 17 of file embedder_test_context_metal.h.
|
explicit |
Definition at line 16 of file embedder_test_context_metal.mm.
References device, GetNextDrawable(), height, kMetal, FlutterRendererConfig::metal, PopulateExternalTexture(), Present(), flutter::testing::EmbedderTestContext::renderer_config_, FlutterMetalRendererConfig::struct_size, texture, texture_id, FlutterRendererConfig::type, user_data, and width.
|
override |
Definition at line 42 of file embedder_test_context_metal.mm.
|
overridevirtual |
Implements flutter::testing::EmbedderTestContext.
Definition at line 44 of file embedder_test_context_metal.mm.
References flutter::testing::kMetalContext.
| FlutterMetalTexture flutter::testing::EmbedderTestContextMetal::GetNextDrawable | ( | const FlutterFrameInfo * | frame_info | ) |
Definition at line 95 of file embedder_test_context_metal.mm.
References FlutterMetalTexture::struct_size, and texture.
Referenced by EmbedderTestContextMetal().
|
overridevirtual |
Implements flutter::testing::EmbedderTestContext.
Definition at line 48 of file embedder_test_context_metal.mm.
| TestMetalContext * flutter::testing::EmbedderTestContextMetal::GetTestMetalContext | ( | ) |
Definition at line 52 of file embedder_test_context_metal.mm.
| TestMetalSurface * flutter::testing::EmbedderTestContextMetal::GetTestMetalSurface | ( | ) |
Definition at line 56 of file embedder_test_context_metal.mm.
| bool flutter::testing::EmbedderTestContextMetal::PopulateExternalTexture | ( | int64_t | texture_id, |
| size_t | w, | ||
| size_t | h, | ||
| FlutterMetalExternalTexture * | output | ||
| ) |
Definition at line 79 of file embedder_test_context_metal.mm.
References flutter::h, and texture_id.
Referenced by EmbedderTestContextMetal().
| bool flutter::testing::EmbedderTestContextMetal::Present | ( | int64_t | texture_id | ) |
Definition at line 64 of file embedder_test_context_metal.mm.
References flutter::testing::EmbedderTestContext::FireRootSurfacePresentCallbackIfPresent(), and texture_id.
Referenced by EmbedderTestContextMetal().
| void flutter::testing::EmbedderTestContextMetal::SetExternalTextureCallback | ( | TestExternalTextureCallback | external_texture_frame_callback | ) |
Definition at line 74 of file embedder_test_context_metal.mm.
| void flutter::testing::EmbedderTestContextMetal::SetNextDrawableCallback | ( | NextDrawableCallback | next_drawable_callback | ) |
Definition at line 90 of file embedder_test_context_metal.mm.
| void flutter::testing::EmbedderTestContextMetal::SetPresentCallback | ( | PresentCallback | present_callback | ) |
Definition at line 60 of file embedder_test_context_metal.mm.