#include <aiks_playground.h>
Public Types | |
using | AiksDlPlaygroundCallback = std::function< sk_sp< flutter::DisplayList >()> |
![]() | |
using | SinglePassCallback = std::function< bool(RenderPass &pass)> |
using | RenderCallback = std::function< bool(RenderTarget &render_target)> |
using | GLProcAddressResolver = std::function< void *(const char *proc_name)> |
using | VKProcAddressResolver = std::function< void *(void *instance, const char *proc_name)> |
Public Member Functions | |
AiksPlayground () | |
~AiksPlayground () | |
void | TearDown () override |
void | SetTypographerContext (std::shared_ptr< TypographerContext > typographer_context) |
bool | OpenPlaygroundHere (const AiksDlPlaygroundCallback &callback) |
bool | OpenPlaygroundHere (const sk_sp< flutter::DisplayList > &list) |
![]() | |
PlaygroundTest () | |
virtual | ~PlaygroundTest () |
void | SetUp () override |
void | TearDown () override |
PlaygroundBackend | GetBackend () const |
std::unique_ptr< fml::Mapping > | OpenAssetAsMapping (std::string asset_name) const override |
RuntimeStage::Map | OpenAssetAsRuntimeStage (const char *asset_name) const |
std::string | GetWindowTitle () const override |
![]() | |
Playground (PlaygroundSwitches switches) | |
virtual | ~Playground () |
void | SetupContext (PlaygroundBackend backend, const PlaygroundSwitches &switches) |
void | SetupWindow () |
void | TeardownWindow () |
bool | IsPlaygroundEnabled () const |
Point | GetCursorPosition () const |
ISize | GetWindowSize () const |
Point | GetContentScale () const |
Scalar | GetSecondsElapsed () const |
Get the amount of time elapsed from the start of the playground's execution. More... | |
std::shared_ptr< Context > | GetContext () const |
std::shared_ptr< Context > | MakeContext () const |
bool | OpenPlaygroundHere (const RenderCallback &render_callback) |
bool | OpenPlaygroundHere (SinglePassCallback pass_callback) |
std::shared_ptr< Texture > | CreateTextureForFixture (const char *fixture_name, bool enable_mipmapping=false) const |
std::shared_ptr< Texture > | CreateTextureCubeForFixture (std::array< const char *, 6 > fixture_names) const |
fml::Status | SetCapabilities (const std::shared_ptr< Capabilities > &capabilities) |
bool | WillRenderSomething () const |
Returns true if OpenPlaygroundHere will actually render anything. More... | |
GLProcAddressResolver | CreateGLProcAddressResolver () const |
VKProcAddressResolver | CreateVKProcAddressResolver () const |
void | SetGPUDisabled (bool disabled) const |
Mark the GPU as unavilable. More... | |
Static Public Member Functions | |
static bool | ImGuiBegin (const char *name, bool *p_open, ImGuiWindowFlags flags) |
![]() | |
static bool | ShouldOpenNewPlaygrounds () |
static std::shared_ptr< CompressedImage > | LoadFixtureImageCompressed (std::shared_ptr< fml::Mapping > mapping) |
static std::optional< DecompressedImage > | DecodeImageRGBA (const std::shared_ptr< CompressedImage > &compressed) |
static std::shared_ptr< Texture > | CreateTextureForMapping (const std::shared_ptr< Context > &context, std::shared_ptr< fml::Mapping > mapping, bool enable_mipmapping=false) |
static bool | SupportsBackend (PlaygroundBackend backend) |
Additional Inherited Members | |
![]() | |
void | SetWindowSize (ISize size) |
![]() | |
const PlaygroundSwitches | switches_ |
Definition at line 16 of file aiks_playground.h.
using impeller::AiksPlayground::AiksDlPlaygroundCallback = std::function<sk_sp<flutter::DisplayList>()> |
Definition at line 18 of file aiks_playground.h.
impeller::AiksPlayground::AiksPlayground | ( | ) |
Definition at line 16 of file aiks_playground.cc.
|
default |
|
static |
Definition at line 30 of file aiks_playground.cc.
Referenced by impeller::testing::BlendModeTest(), and impeller::testing::TEST_P().
bool impeller::AiksPlayground::OpenPlaygroundHere | ( | const AiksDlPlaygroundCallback & | callback | ) |
Definition at line 42 of file aiks_playground.cc.
References impeller::AiksContext::GetContentContext(), impeller::Playground::GetContext(), impeller::RenderTarget::GetRenderTargetSize(), impeller::TSize< T >::height, impeller::AiksContext::IsValid(), impeller::TRect< Scalar >::MakeWH(), impeller::Playground::OpenPlaygroundHere(), impeller::RenderToTarget(), and impeller::TSize< T >::width.
Referenced by impeller::testing::CanRenderConicalGradientWithDithering(), impeller::testing::CanRenderLinearGradientWithDithering(), impeller::testing::CanRenderRadialGradientWithDithering(), impeller::testing::CanRenderSweepGradientWithDithering(), and OpenPlaygroundHere().
bool impeller::AiksPlayground::OpenPlaygroundHere | ( | const sk_sp< flutter::DisplayList > & | list | ) |
Definition at line 37 of file aiks_playground.cc.
References OpenPlaygroundHere().
void impeller::AiksPlayground::SetTypographerContext | ( | std::shared_ptr< TypographerContext > | typographer_context | ) |
Definition at line 21 of file aiks_playground.cc.
|
override |