5#ifndef FLUTTER_SHELL_PLATFORM_EMBEDDER_TESTS_EMBEDDER_TEST_CONTEXT_METAL_H_
6#define FLUTTER_SHELL_PLATFORM_EMBEDDER_TESTS_EMBEDDER_TEST_CONTEXT_METAL_H_
8#include "flutter/shell/platform/embedder/tests/embedder_test_context.h"
9#include "flutter/testing/test_metal_context.h"
10#include "flutter/testing/test_metal_surface.h"
69 std::unique_ptr<TestMetalContext> metal_context_;
70 std::unique_ptr<TestMetalSurface> metal_surface_;
71 size_t present_count_ = 0;
75 void SetupSurface(
SkISize surface_size)
override;
std::function< bool(int64_t texture_id, size_t w, size_t h, FlutterMetalExternalTexture *output)> TestExternalTextureCallback
std::function< FlutterMetalTexture(const FlutterFrameInfo *frame_info)> NextDrawableCallback
std::function< bool(int64_t texture_id)> PresentCallback
size_t GetSurfacePresentCount() const override
TestMetalSurface * GetTestMetalSurface()
void SetNextDrawableCallback(NextDrawableCallback next_drawable_callback)
EmbedderTestContextMetal(std::string assets_path="")
void SetPresentCallback(PresentCallback present_callback)
TestMetalContext * GetTestMetalContext()
void SetExternalTextureCallback(TestExternalTextureCallback external_texture_frame_callback)
void SetupCompositor() override
bool Present(int64_t texture_id)
FlutterMetalTexture GetNextDrawable(const FlutterFrameInfo *frame_info)
EmbedderTestContextType GetContextType() const override
bool PopulateExternalTexture(int64_t texture_id, size_t w, size_t h, FlutterMetalExternalTexture *output)
~EmbedderTestContextMetal() override
#define FML_DISALLOW_COPY_AND_ASSIGN(TypeName)
Dart_NativeFunction function
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
static constexpr SkISize MakeEmpty()