 |
Flutter Impeller
|
|
Go to the documentation of this file.
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"
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);
92 fml::ScopedNSAutoreleasePool autorelease_pool_;
95 std::shared_ptr<TypographerContext> typographer_context_;
97 struct GoldenPlaygroundTestImpl;
99 std::shared_ptr<GoldenPlaygroundTestImpl> pimpl_;
108 #endif // FLUTTER_IMPELLER_GOLDEN_TESTS_GOLDEN_PLAYGROUND_TEST_H_
bool WillRenderSomething() const
static bool ImGuiBegin(const char *name, bool *p_open, ImGuiWindowFlags flags)
Point GetContentScale() const
std::function< std::optional< Picture >(AiksContext &renderer)> AiksPlaygroundCallback
fml::Status SetCapabilities(const std::shared_ptr< Capabilities > &capabilities)
std::shared_ptr< Context > MakeContext() const
bool OpenPlaygroundHere(Picture picture)
std::shared_ptr< Context > GetContext() const
~GoldenPlaygroundTest() override
void SetTypographerContext(std::shared_ptr< TypographerContext > typographer_context)
PlaygroundBackend GetBackend() const
void SetWindowSize(ISize size)
std::shared_ptr< Texture > CreateTextureForFixture(const char *fixture_name, bool enable_mipmapping=false) const
sk_sp< flutter::DlImage > CreateDlImageForFixture(const char *fixture_name, bool enable_mipmapping=false) const
std::function< sk_sp< flutter::DisplayList >()> AiksDlPlaygroundCallback
Scalar GetSecondsElapsed() const
ISize GetWindowSize() const
RuntimeStage::Map OpenAssetAsRuntimeStage(const char *asset_name) const
std::map< RuntimeStageBackend, std::shared_ptr< RuntimeStage > > Map