5#ifndef FLUTTER_IMPELLER_GOLDEN_TESTS_GOLDEN_PLAYGROUND_TEST_H_
6#define FLUTTER_IMPELLER_GOLDEN_TESTS_GOLDEN_PLAYGROUND_TEST_H_
10#include "flutter/impeller/aiks/aiks_context.h"
11#include "flutter/impeller/playground/playground.h"
12#include "flutter/impeller/renderer/render_target.h"
13#include "flutter/testing/testing.h"
15#include "third_party/imgui/imgui.h"
18#include "flutter/fml/platform/darwin/scoped_nsautorelease_pool.h"
24 :
public ::testing::TestWithParam<PlaygroundBackend> {
27 std::function<std::optional<Picture>(
AiksContext& renderer)>;
40 std::shared_ptr<TypographerContext> typographer_context);
48 ImGuiWindowFlags
flags);
51 const char* fixture_name,
52 bool enable_mipmapping =
false)
const;
67 const std::shared_ptr<Capabilities>& capabilities);
83 std::shared_ptr<TypographerContext> typographer_context_;
85 struct GoldenPlaygroundTestImpl;
87 std::shared_ptr<GoldenPlaygroundTestImpl> pimpl_;
PlaygroundBackend GetBackend() const
ISize GetWindowSize() const
std::function< std::optional< Picture >(AiksContext &renderer)> AiksPlaygroundCallback
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)
~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