#include <playground_test.h>
Public Member Functions | |
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... | |
Additional Inherited Members | |
![]() | |
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)> |
![]() | |
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) |
![]() | |
void | SetWindowSize (ISize size) |
![]() | |
const PlaygroundSwitches | switches_ |
Definition at line 21 of file playground_test.h.
impeller::PlaygroundTest::PlaygroundTest | ( | ) |
Definition at line 13 of file playground_test.cc.
References impeller::ImpellerValidationErrorsSetCallback().
|
virtual |
Reimplemented in impeller::interop::testing::PlaygroundTest.
Definition at line 31 of file playground_test.cc.
References impeller::ImpellerValidationErrorsSetCallback().
PlaygroundBackend impeller::PlaygroundTest::GetBackend | ( | ) | const |
|
overridevirtual |
Implements impeller::Playground.
Definition at line 100 of file playground_test.cc.
References GetBackend(), impeller::kMetal, impeller::kOpenGLES, impeller::kVulkan, impeller::Playground::switches_, impeller::PlaygroundSwitches::use_angle, and impeller::PlaygroundSwitches::use_swiftshader.
|
overridevirtual |
Implements impeller::Playground.
Definition at line 84 of file playground_test.cc.
Referenced by impeller::interop::testing::PlaygroundTest::OpenAssetAsHPPMapping(), and impeller::interop::testing::PlaygroundTest::OpenAssetAsHPPTexture().
RuntimeStage::Map impeller::PlaygroundTest::OpenAssetAsRuntimeStage | ( | const char * | asset_name | ) | const |
Definition at line 89 of file playground_test.cc.
References impeller::RuntimeStage::DecodeRuntimeStages().
|
override |
Definition at line 45 of file playground_test.cc.
References impeller::Flags::antialiased_lines, impeller::PlaygroundSwitches::enable_wide_gamut, impeller::PlaygroundSwitches::flags, impeller::kMetal, impeller::Playground::SetupContext(), impeller::Playground::SetupWindow(), impeller::Playground::ShouldOpenNewPlaygrounds(), impeller::Playground::SupportsBackend(), and impeller::Playground::switches_.
Referenced by impeller::interop::testing::PlaygroundTest::SetUp().
|
override |
Definition at line 79 of file playground_test.cc.
References impeller::Playground::TeardownWindow().
Referenced by impeller::AiksPlayground::TearDown(), and impeller::interop::testing::PlaygroundTest::TearDown().