5#ifndef FLUTTER_SHELL_COMMON_SHELL_TEST_H_
6#define FLUTTER_SHELL_COMMON_SHELL_TEST_H_
33 std::function<void(std::shared_ptr<ContainerLayer> root)>;
82 std::optional<TaskRunners> task_runners = {});
83 std::unique_ptr<Shell>
CreateShell(
const Config& config);
92 std::unique_ptr<PlatformMessage>
message);
101 std::unique_ptr<PlatformMessage>
message);
112 static void VSyncFlush(
Shell* shell,
bool* will_draw_new_frame =
nullptr);
123 std::unique_ptr<PointerDataPacket> packet);
136 const SkData& value);
155 rapidjson::Document* response);
Specifies all the configuration required by the runtime library to launch the root isolate....
std::map< std::string_view, std::string_view > ServiceProtocolMap
std::function< std::unique_ptr< T >(Shell &)> CreateCallback
static void PlatformViewNotifyDestroyed(Shell *shell)
void SendPlatformMessage(Shell *shell, std::unique_ptr< PlatformMessage > message)
static void PlatformViewNotifyCreated(Shell *shell)
static void PumpOneFrame(Shell *shell)
static bool IsAnimatorRunning(Shell *shell)
static void TurnOffGPU(Shell *shell, bool value)
static int UnreportedTimingsCount(Shell *shell)
static void RunEngine(Shell *shell, RunConfiguration configuration)
std::shared_ptr< txt::FontCollection > GetFontCollection(Shell *shell)
Settings CreateSettingsForFixture() override
@ kEstimateRasterCacheMemory
TaskRunners GetTaskRunnersForFixture()
static bool ShouldDiscardLayerTree(Shell *shell, int64_t view_id, const flutter::LayerTree &tree)
static void VSyncFlush(Shell *shell, bool *will_draw_new_frame=nullptr)
std::unique_ptr< Shell > CreateShell(const Settings &settings, std::optional< TaskRunners > task_runners={})
static void DispatchPointerData(Shell *shell, std::unique_ptr< PointerDataPacket > packet)
static bool GetNeedsReportTimings(Shell *shell)
static void RestartEngine(Shell *shell, RunConfiguration configuration)
void SendEnginePlatformMessage(Shell *shell, std::unique_ptr< PlatformMessage > message)
static void NotifyIdle(Shell *shell, fml::TimeDelta deadline)
fml::TimePoint GetLatestFrameTargetTime(Shell *shell) const
static void SetNeedsReportTimings(Shell *shell, bool value)
static void StorePersistentCache(PersistentCache *cache, const SkData &key, const SkData &value)
static void SetViewportMetrics(Shell *shell, double width, double height)
void DestroyShell(std::unique_ptr< Shell > shell)
void SendSemanticsAction(Shell *shell, int64_t view_id, int32_t node_id, SemanticsAction action, fml::MallocMapping args)
static void DispatchFakePointerData(Shell *shell, double x)
static void OnServiceProtocol(Shell *shell, ServiceProtocolEnum some_protocol, const fml::RefPtr< fml::TaskRunner > &task_runner, const ServiceProtocol::Handler::ServiceProtocolMap ¶ms, rapidjson::Document *response)
A Mapping like NonOwnedMapping, but uses Free as its release proc.
const EmbeddedViewParams * params
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
G_BEGIN_DECLS GBytes * message
G_BEGIN_DECLS FlutterViewId view_id
#define FML_DISALLOW_COPY_AND_ASSIGN(TypeName)
std::function< void(std::shared_ptr< ContainerLayer > root)> LayerTreeBuilder
std::map< int64_t, ViewContent > FrameContent
The collection of all the threads used by the engine.
const Settings & settings
Shell::CreateCallback< PlatformView > platform_view_create_callback
std::optional< TaskRunners > task_runners
std::optional< int64_t > engine_id
static FrameContent ImplicitView(double width, double height, LayerTreeBuilder builder)
static FrameContent DummyView(double width=1, double height=1)
flutter::ViewportMetrics viewport_metrics
static FrameContent NoViews()