5#ifndef FLUTTER_SHELL_PLATFORM_EMBEDDER_TESTS_EMBEDDER_CONFIG_BUILDER_H_
6#define FLUTTER_SHELL_PLATFORM_EMBEDDER_TESTS_EMBEDDER_CONFIG_BUILDER_H_
8#include "flutter/fml/macros.h"
9#include "flutter/fml/unique_object.h"
10#include "flutter/shell/platform/embedder/embedder.h"
11#include "flutter/shell/platform/embedder/tests/embedder_test.h"
12#include "flutter/shell/platform/embedder/tests/embedder_test_context_software.h"
58 std::optional<FlutterVulkanInstanceProcAddressCallback>
59 instance_proc_address_callback = {});
109 bool use_present_layers_callback =
false);
133#ifdef SHELL_ENABLE_GL
136#ifdef SHELL_ENABLE_VULKAN
137 void InitializeVulkanRendererConfig();
140#ifdef SHELL_ENABLE_METAL
141 void InitializeMetalRendererConfig();
144 std::string dart_entrypoint_;
147 std::vector<std::string> command_line_arguments_;
148 std::vector<std::string> dart_entrypoint_arguments_;
149 std::string log_tag_;
void SetSoftwareRendererConfig(SkISize surface_size=SkISize::Make(1, 1))
void SetPlatformTaskRunner(const FlutterTaskRunnerDescription *runner)
void SetupVsyncCallback()
void SetLogTag(std::string tag)
void SetIsolateCreateCallbackHook()
void SetRendererConfig(EmbedderTestContextType type, SkISize surface_size)
void SetExecutableName(std::string executable_name)
void SetRenderTargetType(EmbedderTestBackingStoreProducer::RenderTargetType type, FlutterSoftwarePixelFormat software_pixfmt=kFlutterSoftwarePixelFormatNative32)
void SetOpenGLFBOCallBack()
void SetDartEntrypoint(std::string entrypoint)
void AddCommandLineArgument(std::string arg)
void SetLogMessageCallbackHook()
void SetChannelUpdateCallbackHook()
FlutterProjectArgs & GetProjectArgs()
void SetRenderTaskRunner(const FlutterTaskRunnerDescription *runner)
FlutterRendererConfig & GetRendererConfig()
void SetOpenGLPresentCallBack()
void AddDartEntrypointArgument(std::string arg)
void SetVulkanRendererConfig(SkISize surface_size, std::optional< FlutterVulkanInstanceProcAddressCallback > instance_proc_address_callback={})
void SetOpenGLRendererConfig(SkISize surface_size)
EmbedderConfigBuilder(EmbedderTestContext &context, InitializationPreference preference=InitializationPreference::kSnapshotsInitialize)
FlutterCompositor & GetCompositor()
void SetMetalRendererConfig(SkISize surface_size)
UniqueEngine LaunchEngine() const
void SetCompositor(bool avoid_backing_store_cache=false, bool use_present_layers_callback=false)
void SetSemanticsCallbackHooks()
UniqueEngine InitializeEngine() const
void SetLocalizationCallbackHooks()
void SetPlatformMessageCallback(const std::function< void(const FlutterPlatformMessage *)> &callback)
FlutterEngineResult FlutterEngineShutdown(FLUTTER_API_SYMBOL(FlutterEngine) engine)
Shuts down a Flutter engine instance. The engine handle is no longer valid for any calls in the embed...
FlutterSoftwarePixelFormat
@ kFlutterSoftwarePixelFormatNative32
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback
#define FML_CHECK(condition)
Dart_NativeFunction function
fml::UniqueObject< FlutterEngine, UniqueEngineTraits > UniqueEngine
static constexpr SkISize Make(int32_t w, int32_t h)
static FlutterEngine InvalidValue()
static bool IsValid(const FlutterEngine &value)
static void Free(FlutterEngine &engine)