 |
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_
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> {
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);
80 fml::ScopedNSAutoreleasePool autorelease_pool_;
83 std::shared_ptr<TypographerContext> typographer_context_;
85 struct GoldenPlaygroundTestImpl;
87 std::shared_ptr<GoldenPlaygroundTestImpl> pimpl_;
96 #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
Scalar GetSecondsElapsed() const
ISize GetWindowSize() const
RuntimeStage::Map OpenAssetAsRuntimeStage(const char *asset_name) const
std::map< RuntimeStageBackend, std::shared_ptr< RuntimeStage > > Map