Flutter Engine
The Flutter Engine
|
#include <golden_playground_test.h>
Classes | |
struct | GoldenPlaygroundTestImpl |
Public Types | |
using | AiksPlaygroundCallback = std::function< std::optional< Picture >(AiksContext &renderer)> |
Public Member Functions | |
GoldenPlaygroundTest () | |
~GoldenPlaygroundTest () override | |
void | SetUp () |
void | TearDown () |
PlaygroundBackend | GetBackend () const |
void | SetTypographerContext (std::shared_ptr< TypographerContext > typographer_context) |
bool | OpenPlaygroundHere (Picture picture) |
bool | OpenPlaygroundHere (AiksPlaygroundCallback callback) |
std::shared_ptr< Texture > | CreateTextureForFixture (const char *fixture_name, bool enable_mipmapping=false) const |
RuntimeStage::Map | OpenAssetAsRuntimeStage (const char *asset_name) const |
std::shared_ptr< Context > | GetContext () const |
std::shared_ptr< Context > | MakeContext () const |
Point | GetContentScale () const |
Scalar | GetSecondsElapsed () const |
ISize | GetWindowSize () const |
fml::Status | SetCapabilities (const std::shared_ptr< Capabilities > &capabilities) |
bool | WillRenderSomething () const |
Static Public Member Functions | |
static bool | ImGuiBegin (const char *name, bool *p_open, ImGuiWindowFlags flags) |
Protected Member Functions | |
void | SetWindowSize (ISize size) |
Definition at line 23 of file golden_playground_test.h.
using impeller::GoldenPlaygroundTest::AiksPlaygroundCallback = std::function<std::optional<Picture>(AiksContext& renderer)> |
Definition at line 26 of file golden_playground_test.h.
|
default |
Definition at line 116 of file golden_playground_test_mac.cc.
|
overridedefault |
std::shared_ptr< Texture > impeller::GoldenPlaygroundTest::CreateTextureForFixture | ( | const char * | fixture_name, |
bool | enable_mipmapping = false |
||
) | const |
Definition at line 235 of file golden_playground_test_mac.cc.
PlaygroundBackend impeller::GoldenPlaygroundTest::GetBackend | ( | ) | const |
Definition at line 198 of file golden_playground_test_mac.cc.
Point impeller::GoldenPlaygroundTest::GetContentScale | ( | ) | const |
Definition at line 281 of file golden_playground_test_mac.cc.
std::shared_ptr< Context > impeller::GoldenPlaygroundTest::GetContext | ( | ) | const |
Definition at line 258 of file golden_playground_test_mac.cc.
Scalar impeller::GoldenPlaygroundTest::GetSecondsElapsed | ( | ) | const |
Definition at line 285 of file golden_playground_test_mac.cc.
ISize impeller::GoldenPlaygroundTest::GetWindowSize | ( | ) | const |
Definition at line 289 of file golden_playground_test_mac.cc.
|
static |
Definition at line 229 of file golden_playground_test_mac.cc.
std::shared_ptr< Context > impeller::GoldenPlaygroundTest::MakeContext | ( | ) | const |
On Metal we create a context for each test.
On OpenGL we create a context for each test.
Definition at line 262 of file golden_playground_test_mac.cc.
RuntimeStage::Map impeller::GoldenPlaygroundTest::OpenAssetAsRuntimeStage | ( | const char * | asset_name | ) | const |
Definition at line 248 of file golden_playground_test_mac.cc.
bool impeller::GoldenPlaygroundTest::OpenPlaygroundHere | ( | AiksPlaygroundCallback | callback | ) |
Definition at line 210 of file golden_playground_test_mac.cc.
bool impeller::GoldenPlaygroundTest::OpenPlaygroundHere | ( | Picture | picture | ) |
Definition at line 202 of file golden_playground_test_mac.cc.
fml::Status impeller::GoldenPlaygroundTest::SetCapabilities | ( | const std::shared_ptr< Capabilities > & | capabilities | ) |
Definition at line 297 of file golden_playground_test_mac.cc.
void impeller::GoldenPlaygroundTest::SetTypographerContext | ( | std::shared_ptr< TypographerContext > | typographer_context | ) |
Definition at line 122 of file golden_playground_test_mac.cc.
void impeller::GoldenPlaygroundTest::SetUp | ( | ) |
Definition at line 141 of file golden_playground_test_mac.cc.
|
protected |
Definition at line 66 of file golden_playground_test_stub.cc.
void impeller::GoldenPlaygroundTest::TearDown | ( | ) |
Definition at line 127 of file golden_playground_test_mac.cc.
|
inline |
TODO(https://github.com/flutter/flutter/issues/139950): Remove this. Returns true if OpenPlaygroundHere
will actually render anything.
Definition at line 71 of file golden_playground_test.h.