5#ifndef FLUTTER_IMPELLER_GOLDEN_TESTS_GOLDEN_PLAYGROUND_TEST_H_
6#define FLUTTER_IMPELLER_GOLDEN_TESTS_GOLDEN_PLAYGROUND_TEST_H_
10#include "flutter/display_list/display_list.h"
11#include "flutter/display_list/image/dl_image.h"
12#include "flutter/impeller/aiks/aiks_context.h"
13#include "flutter/impeller/playground/playground.h"
14#include "flutter/impeller/renderer/render_target.h"
15#include "flutter/testing/testing.h"
17#include "third_party/imgui/imgui.h"
20#include "flutter/fml/platform/darwin/scoped_nsautorelease_pool.h"
26 :
public ::testing::TestWithParam<PlaygroundBackend> {
44 std::shared_ptr<TypographerContext> typographer_context);
56 ImGuiWindowFlags
flags);
59 const char* fixture_name,
60 bool enable_mipmapping =
false)
const;
63 const char* fixture_name,
64 bool enable_mipmapping =
false)
const;
79 const std::shared_ptr<Capabilities>& capabilities);
95 std::shared_ptr<TypographerContext> typographer_context_;
97 struct GoldenPlaygroundTestImpl;
99 std::shared_ptr<GoldenPlaygroundTestImpl> pimpl_;
PlaygroundBackend GetBackend() const
ISize GetWindowSize() const
std::function< std::optional< Picture >(AiksContext &renderer)> AiksPlaygroundCallback
sk_sp< flutter::DlImage > CreateDlImageForFixture(const char *fixture_name, bool enable_mipmapping=false) const
Point GetContentScale() const
fml::Status SetCapabilities(const std::shared_ptr< Capabilities > &capabilities)
void SetTypographerContext(std::shared_ptr< TypographerContext > typographer_context)
std::shared_ptr< Context > MakeContext() const
Scalar GetSecondsElapsed() const
RuntimeStage::Map OpenAssetAsRuntimeStage(const char *asset_name) const
bool OpenPlaygroundHere(Picture picture)
static bool ImGuiBegin(const char *name, bool *p_open, ImGuiWindowFlags flags)
std::function< sk_sp< flutter::DisplayList >()> AiksDlPlaygroundCallback
~GoldenPlaygroundTest() override
std::shared_ptr< Context > GetContext() const
void SetWindowSize(ISize size)
bool WillRenderSomething() const
std::shared_ptr< Texture > CreateTextureForFixture(const char *fixture_name, bool enable_mipmapping=false) const
std::map< RuntimeStageBackend, std::shared_ptr< RuntimeStage > > Map
FlutterSemanticsFlag flags
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback
sk_sp< const SkPicture > picture
DEF_SWITCHES_START aot vmservice shared library name
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size